Exception: LMC::ResponseException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- LMC::ResponseException
- Defined in:
- lib/lmc/exceptions/response_exception.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseException
constructor
Initialize a ResponseException.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ ResponseException
Initialize a ResponseException.
9 10 11 12 13 14 15 |
# File 'lib/lmc/exceptions/response_exception.rb', line 9 def initialize(response) if response.is_a? LMCResponse @response = response else @response = LMCResponse.new response end end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/lmc/exceptions/response_exception.rb', line 4 def response @response end |
Instance Method Details
#message ⇒ Object
17 18 19 |
# File 'lib/lmc/exceptions/response_exception.rb', line 17 def cause. end |