Class: Elastomer::Client::TimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/elastomer/client/errors.rb

Overview

Timeout specific error class.

Instance Method Summary collapse

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.message}: #{path}"
  set_backtrace exception.backtrace
end