public class TokenException extends Exception
| Modifier and Type | Field and Description |
|---|---|
protected Exception |
encapsulatedException
An encapsulated (inner) exception.
|
| Constructor and Description |
|---|
TokenException()
The default constructor.
|
TokenException(Exception encapsulatedException)
Constructor taking an other exception to wrap.
|
TokenException(String message)
Constructor taking an exception message.
|
TokenException(String message,
Exception encapsulatedException)
Constructor taking a message for this exception and an other exception to
wrap.
|
| Modifier and Type | Method and Description |
|---|---|
Exception |
getEncapsulatedException()
Get the encapsulated (wrapped) exception.
|
String |
toString()
Returns the string representation of this exception, including the string
representation of the wrapped (encapsulated) exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceprotected Exception encapsulatedException
public TokenException()
public TokenException(String message)
message - The message giving details about the exception to ease
debugging.public TokenException(Exception encapsulatedException)
encapsulatedException - The other exception the wrap into this.public TokenException(String message, Exception encapsulatedException)
message - The message giving details about the exception to ease
debugging.encapsulatedException - The other exception the wrap into this.public Exception getEncapsulatedException()
Copyright © 2018. All rights reserved.