Exception: UTApi::ConnectionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/utapi/exceptions.rb

Overview

Raised when we cannot connect to the server (timeouts mainly)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(wrapped_exception, *args, &block) ⇒ ConnectionError

Returns a new instance of ConnectionError.



10
11
12
13
# File 'lib/utapi/exceptions.rb', line 10

def initialize(wrapped_exception, *args, &block)
  @wrapped_exception = wrapped_exception
  super(*args, &block)
end

Instance Attribute Details

#wrapped_exceptionObject (readonly)

Returns the value of attribute wrapped_exception.



8
9
10
# File 'lib/utapi/exceptions.rb', line 8

def wrapped_exception
  @wrapped_exception
end

Instance Method Details

#to_sObject



15
16
17
# File 'lib/utapi/exceptions.rb', line 15

def to_s
  "#{@wrapped_exception.class}: #{super}"
end