Exception: Restify::Timeout
- Inherits:
-
StandardError
- Object
- StandardError
- Restify::Timeout
- Defined in:
- lib/restify/error.rb
Overview
A Timeout is raised when a request or promise times out.
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source) ⇒ Timeout
constructor
A new instance of Timeout.
Constructor Details
#initialize(source) ⇒ Timeout
Returns a new instance of Timeout.
11 12 13 14 15 |
# File 'lib/restify/error.rb', line 11 def initialize(source) super "Operation with #{source.class} has timed out" @source = source end |
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
9 10 11 |
# File 'lib/restify/error.rb', line 9 def source @source end |