Class TokenExpiredException

All Implemented Interfaces:
Serializable

public class TokenExpiredException extends UnauthorizedException
Exception thrown when an authentication token has expired. This is a subclass of UnauthorizedException so that existing catch blocks continue to work, while allowing callers to distinguish expired credentials from other authentication failures.
See Also:
  • Constructor Details

    • TokenExpiredException

      @FormatMethod public TokenExpiredException(@FormatString String message, Object... args)
      Constructs a new exception with the specified detail message.
      Parameters:
      message - the detail message.
      args - the arguments to the message.
    • TokenExpiredException

      @FormatMethod public TokenExpiredException(Throwable cause, @FormatString String message, Object... args)
      Constructs a new exception with the specified detail message and cause.
      Parameters:
      cause - the cause.
      message - the detail message.
      args - the arguments to the message.