public class AuthenticationException
extends java.lang.RuntimeException
| Constructor and Description |
|---|
AuthenticationException()
Create Exception.
|
AuthenticationException(AuthenticationErrorCode errorCode)
Instantiates a new authentication exception.
|
AuthenticationException(AuthenticationErrorCode errorCode,
java.lang.String secondaryErrorMessage)
Instantiates a new authentication exception.
|
AuthenticationException(AuthenticationErrorCode errorCode,
java.lang.Throwable t)
Instantiates a new authentication exception.
|
AuthenticationException(AuthenticationErrorCode errorCode,
java.lang.Throwable t,
java.lang.String secondaryErrorMessage)
Instantiates a new authentication exception.
|
AuthenticationException(PluginAuthenticationErrorCode pluginErrorCode)
Instantiates a new authentication exception.
|
AuthenticationException(PluginAuthenticationErrorCode pluginErrorCode,
java.lang.String secondaryErrorMessage)
Instantiates a new authentication exception.
|
AuthenticationException(PluginAuthenticationErrorCode pluginErrorCode,
java.lang.Throwable t,
java.lang.String secondaryErrorMessage)
Instantiates a new authentication exception.
|
AuthenticationException(java.lang.String key)
Create Exception.
|
AuthenticationException(java.lang.String key,
AuthenticationErrorCode errorCode)
Instantiates a new authentication exception.
|
AuthenticationException(java.lang.String key,
AuthenticationErrorCode errorCode,
java.lang.Throwable t)
Instantiates a new authentication exception.
|
AuthenticationException(java.lang.String messageId,
java.lang.Object[] params)
Constructs a new exception with the specified message ID and parameters.
|
AuthenticationException(java.lang.String key,
java.lang.Throwable t)
Create Exception.
|
AuthenticationException(java.lang.String messageId,
java.lang.Throwable cause,
java.lang.Object[] params)
Constructs a new exception with passed message ID, cause, and parameters.
|
AuthenticationException(java.lang.Throwable t)
Create Exception.
|
| Modifier and Type | Method and Description |
|---|---|
AuthenticationErrorCode |
getErrorCode()
Gets the error code.
|
java.lang.String |
getMessage()
Returns the detail message string associated with the message ID for the
current locale.
|
java.lang.String |
getMessage(java.util.Locale locale)
Returns the detail message string associated with the message ID for the
requested locale, if available.
|
java.lang.String |
getMessageId()
Returns the message ID that was passed in on creation, if any.
|
PluginAuthenticationErrorCode |
getPluginAuthenticationErrorCode() |
java.lang.String |
getSecondaryErrorMessage()
Returns the secondary Error message.
|
java.lang.String |
toString()
In addition, the message ID is included as a separate field from the
message itself if those are distinct.
|
public AuthenticationException()
public AuthenticationException(AuthenticationErrorCode errorCode)
errorCode - the error codepublic AuthenticationException(PluginAuthenticationErrorCode pluginErrorCode)
pluginErrorCode - the plugin error codepublic AuthenticationException(AuthenticationErrorCode errorCode, java.lang.String secondaryErrorMessage)
errorCode - the error codesecondaryErrorMessage - Secondary error messagepublic AuthenticationException(PluginAuthenticationErrorCode pluginErrorCode, java.lang.String secondaryErrorMessage)
errorCode - the error codesecondaryErrorMessage - Secondary error messagepublic AuthenticationException(java.lang.String key)
key - the keypublic AuthenticationException(java.lang.String key,
AuthenticationErrorCode errorCode)
key - the keyerrorCode - the error codepublic AuthenticationException(java.lang.String key,
java.lang.Throwable t)
key - the keyt - the tpublic AuthenticationException(java.lang.String key,
AuthenticationErrorCode errorCode,
java.lang.Throwable t)
key - the keyerrorCode - the error codet - the tpublic AuthenticationException(java.lang.Throwable t)
t - the tpublic AuthenticationException(AuthenticationErrorCode errorCode, java.lang.Throwable t)
errorCode - the error codet - the tpublic AuthenticationException(AuthenticationErrorCode errorCode, java.lang.Throwable t, java.lang.String secondaryErrorMessage)
errorCode - the error codet - the tsecondaryErrorMessage - Secondary error messagepublic AuthenticationException(PluginAuthenticationErrorCode pluginErrorCode, java.lang.Throwable t, java.lang.String secondaryErrorMessage)
errorCode - the plugin error codet - the tsecondaryErrorMessage - Secondary error messagepublic AuthenticationException(java.lang.String messageId,
java.lang.Object[] params)
messageId - params - public AuthenticationException(java.lang.String messageId,
java.lang.Throwable cause,
java.lang.Object[] params)
messageId - cause - params - public AuthenticationErrorCode getErrorCode()
public java.lang.String getMessageId()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getSecondaryErrorMessage()
public java.lang.String getMessage(java.util.Locale locale)
public java.lang.String toString()
toString in class java.lang.Throwablepublic PluginAuthenticationErrorCode getPluginAuthenticationErrorCode()