Exception: UTApi::ConnectionError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- UTApi::ConnectionError
- Defined in:
- lib/utapi/exceptions.rb
Overview
Raised when we cannot connect to the server (timeouts mainly)
Instance Attribute Summary collapse
-
#wrapped_exception ⇒ Object
readonly
Returns the value of attribute wrapped_exception.
Instance Method Summary collapse
-
#initialize(wrapped_exception, *args, &block) ⇒ ConnectionError
constructor
A new instance of ConnectionError.
- #to_s ⇒ Object
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_exception ⇒ Object (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_s ⇒ Object
15 16 17 |
# File 'lib/utapi/exceptions.rb', line 15 def to_s "#{@wrapped_exception.class}: #{super}" end |