Exception: Bobot::NetworkError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bobot/exceptions.rb

Overview

Base Facebook Messenger exception.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response, description) ⇒ NetworkError

Returns a new instance of NetworkError.



56
57
58
59
# File 'lib/bobot/exceptions.rb', line 56

def initialize(response, description)
  @response = response
  @description = description
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



54
55
56
# File 'lib/bobot/exceptions.rb', line 54

def description
  @description
end

#responseObject (readonly)

Returns the value of attribute response.



53
54
55
# File 'lib/bobot/exceptions.rb', line 53

def response
  @response
end

Instance Method Details

#messageObject



61
62
63
# File 'lib/bobot/exceptions.rb', line 61

def message
  description
end

#to_sObject



65
66
67
# File 'lib/bobot/exceptions.rb', line 65

def to_s
  message
end