Class AuthErrorCodeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.security.GeneralSecurityException
-
- javax.security.auth.login.LoginException
-
- com.sun.identity.authentication.spi.AuthLoginException
-
- com.sun.identity.authentication.spi.MessageLoginException
-
- com.sun.identity.authentication.spi.AuthErrorCodeException
-
- All Implemented Interfaces:
L10NMessage,Serializable
public class AuthErrorCodeException extends MessageLoginException
This exception associates aLoginExceptionwith an error code fromAMAuthErrorCode, which can later be used byAMLoginContextto handle the exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthErrorCodeException(String authErrorCode, String rbName, String messageCode)Constructs a newAuthErrorCodeException.AuthErrorCodeException(String authErrorCode, String rbName, String messageCode, Object[] args)Constructs a newAuthErrorCodeException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAuthErrorCode()Get the error code which should be one of the codes inAMAuthErrorCode.-
Methods inherited from class com.sun.identity.authentication.spi.AuthLoginException
getErrorCode, getL10NMessage, getMessage, getMessageArgs, getResourceBundleName
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AuthErrorCodeException
public AuthErrorCodeException(String authErrorCode, String rbName, String messageCode)
Constructs a newAuthErrorCodeException.- Parameters:
authErrorCode- The error code which should be one of the codes inAMAuthErrorCode.rbName- Resource Bundle Name where the localized error message is located.messageCode- Key in resource bundle for the message.
-
AuthErrorCodeException
public AuthErrorCodeException(String authErrorCode, String rbName, String messageCode, Object[] args)
Constructs a newAuthErrorCodeException.- Parameters:
authErrorCode- The error code which should be one of the codes inAMAuthErrorCode.rbName- Resource Bundle Name where the localized error message is located.messageCode- Key in resource bundle for the message.args- Arguments to the error message.
-
-
Method Detail
-
getAuthErrorCode
public String getAuthErrorCode()
Get the error code which should be one of the codes inAMAuthErrorCode.- Returns:
- The error code.
-
-