Exception: Slacks::ResponseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Slacks::ResponseError
- Defined in:
- lib/slacks/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, message) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(response, message) ⇒ ResponseError
Returns a new instance of ResponseError.
13 14 15 16 17 |
# File 'lib/slacks/errors.rb', line 13 def initialize(response, ) super @response = response additional_information[:response] = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
11 12 13 |
# File 'lib/slacks/errors.rb', line 11 def response @response end |