public class ClientException extends Exception
Client specific exception.| Constructor and Description |
|---|
ClientException(int code,
String message)
Constructs a new exception with the specified code and message.
|
ClientException(int code,
String message,
Throwable cause)
Constructs a new exception with the specified code, message and cause.
|
ClientException(int code,
Throwable cause)
Constructs a new exception with the specified code and cause.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Returns ASTS API error code.
|
int |
getResponseCode()
Extracts ASTS response code.
|
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic ClientException(int code,
String message)
code - the ASTS API error code.message - the detail message.public ClientException(int code,
Throwable cause)
code - the ASTS API error code.cause - the cause.