class T2Server::ConnectionRedirectError

Raised if the server wishes to redirect the connection. This typically happens if a client tries to connect to a https server vis a http uri.

Attributes

redirect[R]

The redirected connection

Public Class Methods

new(connection) click to toggle source

Create a new ConnectionRedirectError with the new, redirected, connection supplied.

Calls superclass method
# File lib/t2-server/exceptions.rb, line 199
def initialize(connection)
  @redirect = connection

  super "The server returned an unhandled redirect to '#{@redirect}'."
end