public class AuthenticationException extends RuntimeException
Constructor and Description |
---|
AuthenticationException()
Constructs an exception with no message and no underlying cause.
|
AuthenticationException(String message)
Constructs an exception with the specified message.
|
AuthenticationException(String message,
String token)
Constructs an exception with the specified message, token, and
underlying cause.
|
AuthenticationException(String message,
String token,
Throwable cause)
Constructs an exception with the specified message, token, and
underlying cause.
|
AuthenticationException(String message,
Throwable cause)
Constructs an exception with the specified message and underlying
cause.
|
Modifier and Type | Method and Description |
---|---|
String |
getToken()
Get the token.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AuthenticationException()
public AuthenticationException(String message)
message
- the message describing the specific nature of the errorpublic AuthenticationException(String message, String token)
message
- the message describing the specific nature of the errortoken
- the token used when the error was encounteredpublic AuthenticationException(String message, Throwable cause)
message
- the message describing the specific nature of the errorcause
- underlying cause exceptionpublic AuthenticationException(String message, String token, Throwable cause)
message
- the message describing the specific nature of the errortoken
- the token used when the error was encounteredcause
- underlying cause exceptionpublic String getToken()
Copyright © 2015. All Rights Reserved.