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
ConstructorDescriptionJwtException
(String message) Constructs aJwtException
using the provided parameters.JwtException
(String message, Throwable cause) Constructs aJwtException
using 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 aJwtException
using the provided parameters.- Parameters:
message
- the detail message
-
JwtException
Constructs aJwtException
using the provided parameters.- Parameters:
message
- the detail messagecause
- the root cause
-