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.



The redirected connection

Public Class Methods

new(connection) click to toggle source

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

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

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