Exception: OpenTransact::HttpException
- Inherits:
-
Exception
- Object
- Exception
- OpenTransact::HttpException
- Defined in:
- lib/opentransact/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ HttpException
constructor
A new instance of HttpException.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ HttpException
Returns a new instance of HttpException.
106 107 108 |
# File 'lib/opentransact/client.rb', line 106 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
105 106 107 |
# File 'lib/opentransact/client.rb', line 105 def response @response end |
Instance Method Details
#message ⇒ Object
110 111 112 |
# File 'lib/opentransact/client.rb', line 110 def super+(" (http response code #{@response.code})") end |