public class TokenException
extends java.lang.Exception
Modifier and Type | Class and Description |
---|---|
static class |
TokenException.Reason
A List of reasons on why that was wrong with to token.
|
Constructor and Description |
---|
TokenException(java.lang.String message,
java.lang.Throwable cause,
TokenException.Reason reason)
Exception thrown by TokenGenerator if verification of a token failed.
|
TokenException(java.lang.String message,
TokenException.Reason reason)
Exception thrown by TokenGenerator if verification of a token failed.
|
Modifier and Type | Method and Description |
---|---|
TokenException.Reason |
getReason() |
public TokenException(java.lang.String message, TokenException.Reason reason)
message
- descriptive message.reason
- the related reason code.public TokenException(java.lang.String message, java.lang.Throwable cause, TokenException.Reason reason)
message
- descriptive message.cause
- causing exception.reason
- the related reason code.public TokenException.Reason getReason()