Class AuthenticationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.security.authentication.AuthenticationException
All Implemented Interfaces:
Serializable

public class AuthenticationException extends RuntimeException
A runtime exception thrown when authentication fails.
Since:
1.0
Author:
James Kleeh
See Also:
  • Constructor Details

    • 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(String message)
      Parameters:
      message - A custom message
  • Method Details

    • getResponse

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