Class: Elastomer::Client::TimeoutError
- Defined in:
- lib/elastomer/client/errors.rb
Overview
Timeout specific error class.
Instance Method Summary collapse
-
#initialize(exception, path) ⇒ TimeoutError
constructor
Wrap a Farday TimeoutError with our own class and include the HTTP path where the error originated.
Constructor Details
#initialize(exception, path) ⇒ TimeoutError
Wrap a Farday TimeoutError with our own class and include the HTTP path where the error originated.
exception - The originating Faraday::Error::TimeoutError path - The path portion of the HTTP request
44 45 46 47 |
# File 'lib/elastomer/client/errors.rb', line 44 def initialize( exception, path ) super "#{exception.}: #{path}" set_backtrace exception.backtrace end |