Class: GenericError
- Inherits:
-
Faraday::ClientError
- Object
- Faraday::ClientError
- GenericError
- Defined in:
- lib/flow_cl/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.
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 |