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