Exception: CoinTools::ResponseError
- Defined in:
- lib/cointools/errors.rb
Direct Known Subclasses
BadRequestError, JSONError, NoDataError, ServiceUnavailableError
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response, message = nil) ⇒ ResponseError
constructor
A new instance of ResponseError.
Methods inherited from Error
Constructor Details
#initialize(response, message = nil) ⇒ ResponseError
Returns a new instance of ResponseError.
28 29 30 31 |
# File 'lib/cointools/errors.rb', line 28 def initialize(response, = nil) super( || "#{response.code} #{response.}") @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
26 27 28 |
# File 'lib/cointools/errors.rb', line 26 def response @response end |