Class: GenericError
- Inherits:
-
Faraday::Error::ClientError
- Object
- Faraday::Error::ClientError
- GenericError
- Defined in:
- lib/cryptomkt_ruby/error_handler.rb
Instance Method Summary collapse
-
#initialize(exception = nil) ⇒ GenericError
constructor
A new instance of GenericError.
Constructor Details
#initialize(exception = nil) ⇒ GenericError
Returns a new instance of GenericError.
24 25 26 |
# File 'lib/cryptomkt_ruby/error_handler.rb', line 24 def initialize(exception = nil) super("the server responded with status #{exception[:status]}: #{exception[:body]}") end |