Exception: Escobar::Client::TimeoutError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/escobar/client.rb

Overview

TimeoutError class when API timeouts

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(err) ⇒ TimeoutError

Returns a new instance of TimeoutError.



11
12
13
14
# File 'lib/escobar/client.rb', line 11

def initialize(err)
  @cause = err
  self.set_backtrace(err.backtrace)
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



10
11
12
# File 'lib/escobar/client.rb', line 10

def cause
  @cause
end

Class Method Details

.wrap(err) ⇒ Object



6
7
8
# File 'lib/escobar/client.rb', line 6

def self.wrap(err)
  new(err)
end