Class AuthErrorCodeException

  • All Implemented Interfaces:
    L10NMessage, Serializable

    public class AuthErrorCodeException
    extends MessageLoginException
    This exception associates a LoginException with an error code from AMAuthErrorCode, which can later be used by AMLoginContext to handle the exception.
    See Also:
    Serialized Form
    • Constructor Detail

      • AuthErrorCodeException

        public AuthErrorCodeException​(String authErrorCode,
                                      String rbName,
                                      String messageCode)
        Constructs a new AuthErrorCodeException.
        Parameters:
        authErrorCode - The error code which should be one of the codes in AMAuthErrorCode.
        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 new AuthErrorCodeException.
        Parameters:
        authErrorCode - The error code which should be one of the codes in AMAuthErrorCode.
        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 in AMAuthErrorCode.
        Returns:
        The error code.