Class: GenericError

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

Instance Method Summary collapse

Constructor Details

#initialize(exception = nil) ⇒ GenericError

Returns a new instance of GenericError.



26
27
28
# File 'lib/flow_cl/error_handler.rb', line 26

def initialize(exception = nil)
  super("the server responded with status #{exception[:status]}: #{exception[:body]}")
end