Class AuthenticationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.micronaut.security.authentication.AuthenticationException
- All Implemented Interfaces:
Serializable
A runtime exception thrown when authentication fails.
- Since:
- 1.0
- Author:
- James Kleeh
- See Also:
-
Constructor Summary
ConstructorDescriptionNo message.Sets the message based on the response.AuthenticationException
(String message) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AuthenticationException
Sets the message based on the response.- Parameters:
response
- The authentication response
-
AuthenticationException
public AuthenticationException()No message. -
AuthenticationException
- Parameters:
message
- A custom message
-
-
Method Details
-
getResponse
- Returns:
- The authentication response, or null if the exception is not tied to a response
-