org.jasig.cas.authentication.handler
Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.jasig.cas.authentication.handler.AuthenticationException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BadCredentialsAuthenticationException, BlockedCredentialsAuthenticationException, UncategorizedAuthenticationException, UnsupportedCredentialsException
public abstract class AuthenticationException
- extends java.lang.Exception
The most generic type of authentication exception that one can catch if not
sure what specific implementation will be thrown. Top of the tree of all
other AuthenticationExceptions.
- 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
|
Constructor Summary |
AuthenticationException(java.lang.String code)
Constructor that takes a code description of the error. |
AuthenticationException(java.lang.String code,
java.lang.Throwable throwable)
Constructor that takes a code description of the error and the chained
exception. |
|
Method Summary |
java.lang.String |
getCode()
Method to return the unique identifier for this error type. |
java.lang.String |
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 |
AuthenticationException
public AuthenticationException(java.lang.String code)
- Constructor that takes a code description of the error. These codes
normally have a corresponding entries in the messages file for the
internationalization of error messages.
- Parameters:
code - The short unique identifier for this error.
AuthenticationException
public AuthenticationException(java.lang.String code,
java.lang.Throwable throwable)
- Constructor that takes a code description of the error and the chained
exception. These codes normally have a corresponding entries in the
messages file for the internationalization of error messages.
- Parameters:
code - The short unique identifier for this error.throwable - The chained exception for this AuthenticationException
getCode
public final java.lang.String getCode()
- Method to return the unique identifier for this error type.
- Returns:
- the String identifier for this error type.
toString
public final java.lang.String toString()
- Overrides:
toString in class java.lang.Throwable
Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.