Serializable
public class AuthenticatorException extends RuntimeException
Modifier and Type | Field | Description |
---|---|---|
static int |
CUSTOM_ERROR |
|
static int |
ERRORPAGE_TYPE_FORWARD |
|
static int |
ERRORPAGE_TYPE_UNDEFINED |
|
static int |
ERRORPAGE_TYPE_URL |
|
static int |
INACTIVE_ACCOUNT |
|
static int |
INVALID_AUTHENTICATION_TYPE |
|
static int |
INVALID_DATA |
|
static int |
INVALID_PASSWORD |
|
static int |
SYSTEM_ERROR |
|
static int |
UNKNOWN_USER |
Constructor | Description |
---|---|
AuthenticatorException() |
|
AuthenticatorException(int type) |
|
AuthenticatorException(int type,
String messageKey) |
|
AuthenticatorException(String message,
int type) |
|
AuthenticatorException(String message,
int type,
String messageKey) |
|
AuthenticatorException(String message,
int type,
Throwable cause) |
Modifier and Type | Method | Description |
---|---|---|
int |
getErrorPageType() |
Returns the type of error page that is has been set.
|
String |
getErrorPageValue() |
Returns the error page that should be used to display this exception
Supported values are urls and Struts forward action mappings.
|
String |
getMessage() |
|
String |
getMessageKey() |
Returns a key that contains a custom error message to display to the user.
|
int |
getType() |
|
void |
setErrorPageType(int value) |
Sets the type of error page that should be used to display this exception.
|
void |
setErrorPageValue(String value) |
Returns the error page that should be used to display this exception
Supported values are urls and Struts forward action mappings.
|
void |
setMessageKey(String messageKey) |
Sets a key that contains a custom error message to display to the user.
|
void |
setType(int type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int INVALID_DATA
public static final int UNKNOWN_USER
public static final int INVALID_PASSWORD
public static final int INACTIVE_ACCOUNT
public static final int SYSTEM_ERROR
public static final int INVALID_AUTHENTICATION_TYPE
public static final int CUSTOM_ERROR
public static final int ERRORPAGE_TYPE_UNDEFINED
public static final int ERRORPAGE_TYPE_FORWARD
public static final int ERRORPAGE_TYPE_URL
public AuthenticatorException()
public AuthenticatorException(int type)
public AuthenticatorException(int type, String messageKey)
public AuthenticatorException(String message, int type)
public int getType()
public void setType(int type)
public String getMessage()
getMessage
in class Throwable
public String getMessageKey()
public void setMessageKey(String messageKey)
messageKey
- a resource key that can be used to look up the custom error
message for this exception.public int getErrorPageType()
ERRORPAGE_TYPE_FORWARD
,
ERRORPAGE_TYPE_URL
public void setErrorPageType(int value)
value
- the type of error page that has been setERRORPAGE_TYPE_FORWARD
,
ERRORPAGE_TYPE_URL
public String getErrorPageValue()
setErrorPageType(int)
public void setErrorPageValue(String value)
value
- the error page that should be used to display this messagesetErrorPageType(int)
Copyright © 2002–2019 itracker. All rights reserved.