Exception: Rentlinx::HTTPError
- Inherits:
-
RentlinxError
- Object
- StandardError
- RentlinxError
- Rentlinx::HTTPError
- Defined in:
- lib/rentlinx/errors.rb
Overview
A general class of errors for handling issues in the communication with Rentlinx. To be inherited from, or thrown when the server returns a code not otherwise handled.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, msg = nil) ⇒ HTTPError
constructor
A new instance of HTTPError.
Constructor Details
#initialize(response, msg = nil) ⇒ HTTPError
Returns a new instance of HTTPError.
49 50 51 52 |
# File 'lib/rentlinx/errors.rb', line 49 def initialize(response, msg = nil) @response = response super(msg.nil? ? 'Received an unexpected response from the server' : msg) end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
47 48 49 |
# File 'lib/rentlinx/errors.rb', line 47 def response @response end |