org.jasig.cas.authentication.handler
Class UnknownUsernameAuthenticationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jasig.cas.authentication.handler.AuthenticationException
              extended by org.jasig.cas.authentication.handler.BadCredentialsAuthenticationException
                  extended by org.jasig.cas.authentication.handler.BadUsernameOrPasswordAuthenticationException
                      extended by org.jasig.cas.authentication.handler.UnknownUsernameAuthenticationException
All Implemented Interfaces:
java.io.Serializable

public class UnknownUsernameAuthenticationException
extends BadUsernameOrPasswordAuthenticationException

The exception to throw when we explicitly don't know anything about the username.

Since:
3.0
Version:
$Revision: 42053 $ $Date: 2007-06-10 09:17:55 -0400 (Sun, 10 Jun 2007) $
Author:
Scott Battaglia
See Also:
Serialized Form

Field Summary
static UnknownUsernameAuthenticationException ERROR
          Static instance of UnknownUsernameAuthenticationException.
 
Constructor Summary
UnknownUsernameAuthenticationException()
          Default constructor that does not allow the chaining of exceptions and uses the default code as the error code for this exception.
UnknownUsernameAuthenticationException(java.lang.String code)
          Constructor that allows for providing a custom error code for this class.
UnknownUsernameAuthenticationException(java.lang.String code, java.lang.Throwable throwable)
          Constructor that allows for chaining of exceptions and a custom error code.
UnknownUsernameAuthenticationException(java.lang.Throwable throwable)
          Constructor that allows for the chaining of exceptions.
 
Method Summary
 
Methods inherited from class org.jasig.cas.authentication.handler.AuthenticationException
getCode, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR

public static final UnknownUsernameAuthenticationException ERROR
Static instance of UnknownUsernameAuthenticationException.

Constructor Detail

UnknownUsernameAuthenticationException

public UnknownUsernameAuthenticationException()
Default constructor that does not allow the chaining of exceptions and uses the default code as the error code for this exception.


UnknownUsernameAuthenticationException

public UnknownUsernameAuthenticationException(java.lang.Throwable throwable)
Constructor that allows for the chaining of exceptions. Defaults to the default code provided for this exception.

Parameters:
throwable - the chained exception.

UnknownUsernameAuthenticationException

public UnknownUsernameAuthenticationException(java.lang.String code)
Constructor that allows for providing a custom error code for this class. Error codes are often used to resolve exceptions into messages. Providing a custom error code allows the use of a different message.

Parameters:
code - the custom code to use with this exception.

UnknownUsernameAuthenticationException

public UnknownUsernameAuthenticationException(java.lang.String code,
                                              java.lang.Throwable throwable)
Constructor that allows for chaining of exceptions and a custom error code.

Parameters:
code - the custom error code to use in message resolving.
throwable - the chained exception.


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.