Class: GenericError

Inherits:
Faraday::Error::ClientError
  • Object
show all
Defined in:
lib/cryptomkt_ruby/error_handler.rb

Instance Method Summary collapse

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