Exception: Hubscreen::RequestError
- Inherits:
-
StandardError
- Object
- StandardError
- Hubscreen::RequestError
- Defined in:
- lib/hubscreen/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response) ⇒ RequestError
constructor
A new instance of RequestError.
Constructor Details
#initialize(message, response) ⇒ RequestError
Returns a new instance of RequestError.
7 8 9 10 11 12 |
# File 'lib/hubscreen/exceptions.rb', line 7 def initialize(, response) += "\n" if me = super("#{}Response body: #{response}",) me.response = response return me end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
5 6 7 |
# File 'lib/hubscreen/exceptions.rb', line 5 def response @response end |