Exception: T2Server::ConnectionError

Inherits:
T2ServerError show all
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

Instance Method Summary collapse

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.message}"
end

Instance Attribute Details

#causeObject (readonly)

The internal cause of this connection error.



74
75
76
# File 'lib/t2-server/exceptions.rb', line 74

def cause
  @cause
end