Class TokenNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
edu.ntnu.idatt2106_2023_06.backend.exception.not_found.NotFoundException
edu.ntnu.idatt2106_2023_06.backend.exception.not_found.TokenNotFoundException
- All Implemented Interfaces:
Serializable
An exception to be thrown when a token is not found.
- Author:
- Trym Hamer Gudvangen
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTokenNotFoundException
(Long tokenId) This method constructs a new TokenNotFoundException with the specified user id.TokenNotFoundException
(String token) This method constructs a new with the specified token value. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TokenNotFoundException
This method constructs a new with the specified token value.- Parameters:
token
- The token value, given as a String
-
TokenNotFoundException
This method constructs a new TokenNotFoundException with the specified user id.- Parameters:
tokenId
- The id of the token that was not found, given as a Long object.
-