Exception: Eezee::TimeoutError

Inherits:
Error
  • Object
show all
Defined in:
lib/eezee/errors/timeout_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ TimeoutError

Returns a new instance of TimeoutError.



7
8
9
10
# File 'lib/eezee/errors/timeout_error.rb', line 7

def initialize(response)
  @response = response
  super(response.original)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



5
6
7
# File 'lib/eezee/errors/timeout_error.rb', line 5

def response
  @response
end

Instance Method Details

#logObject



12
13
14
# File 'lib/eezee/errors/timeout_error.rb', line 12

def log
  Eezee::Logger.error(self)
end