public abstract class AuthenticationException extends Exception
| Constructor and Description |
|---|
AuthenticationException(String code)
Constructor that takes a code description of the error.
|
AuthenticationException(String code,
String msg)
Constructor that takes a
code description of the error along with the exception
msg generally for logging purposes. |
AuthenticationException(String code,
String msg,
String type)
Constructor that takes a
code description of the error along with the exception
msg generally for logging purposes and the type of the error that originally caused the exception. |
AuthenticationException(String code,
Throwable throwable)
Constructor that takes a code description of the error and the chained
exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Method to return the unique identifier for this error type.
|
String |
getType()
Method to return the error type of this exception
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic AuthenticationException(String code)
code - The short unique identifier for this error.public AuthenticationException(String code, String msg)
code description of the error along with the exception
msg generally for logging purposes. These codes normally have a corresponding
entries in the messages file for the internationalization of error messages.code - The short unique identifier for this error.msg - The error message associated with this exception for additional logging purposes.public AuthenticationException(String code, String msg, String type)
code description of the error along with the exception
msg generally for logging purposes and the type of the error that originally caused the exception.
These codes normally have a corresponding entries in the messages file for the internationalization of error messages.code - The short unique identifier for this error.msg - The error message associated with this exception for additional logging purposes.type - The type of the error message that caused the exception to be thrown. By default,
all errors are considered of error.public AuthenticationException(String code, Throwable throwable)
code - The short unique identifier for this error.throwable - The chained exception for this AuthenticationExceptionpublic final String getType()
public final String getCode()
Copyright © 2004-2012 Jasig. All Rights Reserved.