Class: Trilogy::TimeoutError

Inherits:
Errno::ETIMEDOUT
  • Object
show all
Includes:
ConnectionError
Defined in:
lib/trilogy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_message = nil, error_code = nil) ⇒ TimeoutError

Returns a new instance of TimeoutError.



48
49
50
51
# File 'lib/trilogy.rb', line 48

def initialize(error_message = nil, error_code = nil)
  super
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



46
47
48
# File 'lib/trilogy.rb', line 46

def error_code
  @error_code
end