public class TSPException extends Exception
| Modifier and Type | Field and Description |
|---|---|
static int |
REASON_REQUEST_FAILED
Exception is thrown when TimeStamp request failed.
|
static int |
REASON_REQUEST_FORBIDDEN
Exception is thrown when TimeStamp request is forbidden.
|
static int |
REASON_REQUEST_REJECTED
Exception is thrown when TimeStamp request is rejected.
|
static int |
REASON_RESPONSE_INCONSISTENT
Exception is thrown when TimeStamp response does not math the request.
|
static int |
REASON_RESPONSE_MALFORMED
Exception is thrown when TimeStamp response is malformed.
|
static int |
REASON_TIMESTAMP_INVALID
Exception is thrown when TimeStamp is invalid.
|
static int |
REASON_TIMESTAMP_SIGNATURE
Exception is thrown when TimeStamp signature is invalid.
|
| Constructor and Description |
|---|
TSPException(String message,
int reason) |
TSPException(String message,
Throwable cause,
int reason) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMessage() |
int |
getReason()
Returns the reason code of this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int REASON_TIMESTAMP_INVALID
public static final int REASON_TIMESTAMP_SIGNATURE
public static final int REASON_RESPONSE_MALFORMED
public static final int REASON_RESPONSE_INCONSISTENT
public static final int REASON_REQUEST_FAILED
public static final int REASON_REQUEST_FORBIDDEN
public static final int REASON_REQUEST_REJECTED
public TSPException(String message, int reason)
public int getReason()
public String getMessage()
getMessage in class Throwable