Class AuthenticationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AuthenticationException
    extends java.lang.RuntimeException
    A runtime exception thrown when authentication fails.
    Since:
    1.0
    See Also:
    Serialized Form
    • Constructor Detail

      • AuthenticationException

        public AuthenticationException​(AuthenticationResponse response)
        Sets the message based on the response.
        Parameters:
        response - The authentication response
      • AuthenticationException

        public AuthenticationException()
        No message.
      • AuthenticationException

        public AuthenticationException​(java.lang.String message)
        Parameters:
        message - A custom message
    • Method Detail

      • getResponse

        @Nullable
        public AuthenticationResponse getResponse()
        Returns:
        The authentication response, or null if the exception is not tied to a response