Class: RestClient::Exceptions::Timeout

Inherits:
RequestTimeout
  • Object
show all
Defined in:
lib/restclient/exceptions.rb

Overview

Base class for request timeouts.

NB: Previous releases of rest-client would raise RequestTimeout both for HTTP 408 responses and for actual connection timeouts.

Direct Known Subclasses

OpenTimeout, ReadTimeout

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, original_exception = nil) ⇒ Timeout

Returns a new instance of Timeout.


203
204
205
206
207
# File 'lib/restclient/exceptions.rb', line 203

def initialize(message=nil, original_exception=nil)
  super(nil, nil)
  self.message = message if message
  self.original_exception = original_exception if original_exception
end