Class JwtException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    BadJwtException

    public class JwtException
    extends java.lang.RuntimeException
    Base exception for all JSON Web Token (JWT) related errors.
    Since:
    5.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      JwtException​(java.lang.String message)
      Constructs a JwtException using the provided parameters.
      JwtException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a JwtException 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • JwtException

        public JwtException​(java.lang.String message)
        Constructs a JwtException using the provided parameters.
        Parameters:
        message - the detail message
      • JwtException

        public JwtException​(java.lang.String message,
                            java.lang.Throwable cause)
        Constructs a JwtException using the provided parameters.
        Parameters:
        message - the detail message
        cause - the root cause