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