public class ClientException extends Exception
| Constructor and Description |
|---|
ClientException(Exception _innerException,
boolean _critical,
Logger logger) |
ClientException(Exception _innerException,
Logger logger) |
ClientException(int _httpStatusCode,
Logger logger) |
ClientException(int _httpStatusCode,
String _httpError,
boolean _critical,
Logger logger) |
ClientException(int _httpStatusCode,
String _httpError,
Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHttpError()
Returns additional HTTP error information, if any.
|
int |
getHttpStatusCode()
Returns the HTTP status code, if any.
|
Exception |
getInnerException()
Returns the actual exception that occurred, if any.
|
String |
getMessage()
Returns a description of the exception.
|
boolean |
isCritical()
Returns whether or not this exception is critical.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ClientException(Exception _innerException, Logger logger)
_innerException - the actual exception that occurred.logger - used to log the exception details.public ClientException(Exception _innerException, boolean _critical, Logger logger)
_innerException - the actual exception that occurred._critical - flag that tells whether or not the exception
occurred at a critical point in the
transaction.logger - used to log the exception details.public ClientException(int _httpStatusCode,
Logger logger)
_httpStatusCode - HTTP status codelogger - used to log the exception details.public ClientException(int _httpStatusCode,
String _httpError,
Logger logger)
_httpStatusCode - HTTP status code_httpError - Additional HTTP error information; may be null.logger - used to log the exception details.public ClientException(int _httpStatusCode,
String _httpError,
boolean _critical,
Logger logger)
_httpStatusCode - HTTP status code_httpError - Additional HTTP error information; may be null._critical - flag that tells whether or not the exception
occurred at a critical point in the
transaction.logger - used to log the exception details.public Exception getInnerException()
null if this
object was constructed using an HTTP status code.public boolean isCritical()
true in the following cases:
HttpURLConnection.HTTP_GATEWAY_TIMEOUT was returned.
public int getHttpStatusCode()
public String getHttpError()
null if this
object was constructed using an actual exception that occurred.public String getMessage()
getMessage in class ThrowableCopyright © 2022. All rights reserved.