Class: RestClient::Exceptions::Timeout
- Inherits:
-
RequestTimeout
- Object
- RequestTimeout
- RestClient::Exceptions::Timeout
- 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
Instance Method Summary collapse
-
#initialize(message = nil, original_exception = nil) ⇒ Timeout
constructor
A new instance of Timeout.
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(=nil, original_exception=nil) super(nil, nil) self. = if self.original_exception = original_exception if original_exception end |