class T2Server::ConnectionError

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.



The internal cause of this connection error.

Public Class Methods

new(cause) click to toggle source

Create a new ConnectionError with the specified cause. The cause to be passed in should be the exception object that caused the connection error.

Calls superclass method
# File lib/t2-server/exceptions.rb, line 76
def initialize(cause)
  @cause = cause
  super "Connection error (#{}): #{@cause.message}"