Class InvalidTokenException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
edu.ntnu.idatt2106_2023_06.backend.exception.InvalidTokenException
- All Implemented Interfaces:
Serializable
This exception is thrown to indicate that a token is invalid.
- Author:
- Trym Hamer Gudvangen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionThis method constructs an InvalidTokenException with no detail message.InvalidTokenException
(String token) This method constructs an InvalidTokenException with the specified token as the detail message.InvalidTokenException
(String message, Throwable cause) This method constructs an InvalidTokenException with the specified detail message and cause.InvalidTokenException
(Throwable cause) This method constructs an InvalidTokenException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidTokenException
public InvalidTokenException()This method constructs an InvalidTokenException with no detail message. -
InvalidTokenException
This method constructs an InvalidTokenException with the specified token as the detail message.- Parameters:
token
- The token that caused the exception.
-
InvalidTokenException
This method constructs an InvalidTokenException with the specified detail message and cause.- Parameters:
message
- The detail message.cause
- The cause of the exception.
-
InvalidTokenException
This method constructs an InvalidTokenException with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).- Parameters:
cause
- The cause of the exception.
-