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
199 def initialize(connection)
200   @redirect = connection
201 
202   super "The server returned an unhandled redirect to '#{@redirect}'."
203 end