org.jasig.cas.authentication.handler
Class BadUsernameOrPasswordAuthenticationException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BadPasswordAuthenticationException, UnknownUsernameAuthenticationException

public class BadUsernameOrPasswordAuthenticationException
extends BadCredentialsAuthenticationException

Exception to throw when we know the credentials provided were username/password and the combination is wrong.

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 BadUsernameOrPasswordAuthenticationException ERROR
          Static instance of BadUsernameOrPasswordAuthenticationException.
 
Constructor Summary
BadUsernameOrPasswordAuthenticationException()
          Default constructor that does not allow the chaining of exceptions and uses the default code as the error code for this exception.
BadUsernameOrPasswordAuthenticationException(java.lang.String code)
          Constructor that allows for providing a custom error code for this class.
BadUsernameOrPasswordAuthenticationException(java.lang.String code, java.lang.Throwable throwable)
          Constructor that allows for chaining of exceptions and a custom error code.
BadUsernameOrPasswordAuthenticationException(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 BadUsernameOrPasswordAuthenticationException ERROR
Static instance of BadUsernameOrPasswordAuthenticationException.

Constructor Detail

BadUsernameOrPasswordAuthenticationException

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


BadUsernameOrPasswordAuthenticationException

public BadUsernameOrPasswordAuthenticationException(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.

BadUsernameOrPasswordAuthenticationException

public BadUsernameOrPasswordAuthenticationException(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.

BadUsernameOrPasswordAuthenticationException

public BadUsernameOrPasswordAuthenticationException(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.