Exception: T2Server::ConnectionError
- Inherits:
-
T2ServerError
- Object
- RuntimeError
- T2ServerError
- T2Server::ConnectionError
- Defined in:
- lib/t2-server/exceptions.rb
Overview
Raised when there is an error with the connection to the server in some way. This could be due to the server not accepting the connection, the connection being dropped unexpectedly or a timeout of some sort.
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
The internal cause of this connection error.
Instance Method Summary collapse
-
#initialize(cause) ⇒ ConnectionError
constructor
Create a new ConnectionError with the specified cause.
Constructor Details
#initialize(cause) ⇒ ConnectionError
Create a new ConnectionError with the specified cause. The cause to be passed in should be the exception object that caused the connection error.
79 80 81 82 |
# File 'lib/t2-server/exceptions.rb', line 79 def initialize(cause) @cause = cause super "Connection error (#{@cause.class.name}): #{@cause.}" end |
Instance Attribute Details
#cause ⇒ Object (readonly)
The internal cause of this connection error.
74 75 76 |
# File 'lib/t2-server/exceptions.rb', line 74 def cause @cause end |