Exception: Bobot::NetworkError
- Inherits:
-
StandardError
- Object
- StandardError
- Bobot::NetworkError
- Defined in:
- lib/bobot/exceptions.rb
Overview
Base Facebook Messenger exception.
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, description) ⇒ NetworkError
constructor
A new instance of NetworkError.
- #message ⇒ Object
- #to_s ⇒ Object
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
54 55 56 |
# File 'lib/bobot/exceptions.rb', line 54 def description @description end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
53 54 55 |
# File 'lib/bobot/exceptions.rb', line 53 def response @response end |
Instance Method Details
#message ⇒ Object
61 62 63 |
# File 'lib/bobot/exceptions.rb', line 61 def description end |
#to_s ⇒ Object
65 66 67 |
# File 'lib/bobot/exceptions.rb', line 65 def to_s end |