Class JwtException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.security.oauth2.jwt.JwtException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadJwtException,JwtEncodingException
Base exception for all JSON Web Token (JWT) related errors.
- Since:
- 5.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJwtException(String message) Constructs aJwtExceptionusing the provided parameters.JwtException(String message, Throwable cause) Constructs aJwtExceptionusing the provided parameters. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JwtException
Constructs aJwtExceptionusing the provided parameters.- Parameters:
message- the detail message
-
JwtException
Constructs aJwtExceptionusing the provided parameters.- Parameters:
message- the detail messagecause- the root cause
-