Exception: Restify::Timeout

Inherits:
StandardError
  • Object
show all
Defined in:
lib/restify/error.rb

Overview

A Timeout is raised when a request or promise times out.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sourceObject (readonly)

Returns the value of attribute source.



9
10
11
# File 'lib/restify/error.rb', line 9

def source
  @source
end