class T2Server::AuthorizationError
Access to the server is denied to this username
Attributes
username[R]
The username that has failed authorization.
Public Class Methods
new(credentials)
click to toggle source
Create a new AuthorizationError
with the rejected username
Calls superclass method
# File lib/t2-server/exceptions.rb 166 def initialize(credentials) 167 if credentials != nil 168 @username = credentials.username 169 else 170 @username = "" 171 end 172 super "The username '#{@username}' is not authorized to connect to " + 173 "this server" 174 end