public class ClientException
extends java.lang.Exception
| Constructor and Description |
|---|
ClientException(java.lang.Exception _innerException,
boolean _critical,
Logger logger)
Constructor.
|
ClientException(java.lang.Exception _innerException,
Logger logger)
Constructor.
|
ClientException(int _httpStatusCode,
Logger logger)
Constructor.
|
ClientException(int _httpStatusCode,
java.lang.String _httpError,
boolean _critical,
Logger logger)
Constructor.
|
ClientException(int _httpStatusCode,
java.lang.String _httpError,
Logger logger)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHttpError()
Returns additional HTTP error information, if any.
|
int |
getHttpStatusCode()
Returns the HTTP status code, if any.
|
java.lang.Exception |
getInnerException()
Returns the actual exception that occurred, if any.
|
java.lang.String |
getMessage()
Returns a description of the exception.
|
boolean |
isCritical()
Returns whether or not this exception is critical.
|
public ClientException(java.lang.Exception _innerException,
Logger logger)
_innerException - the actual exception that occurred.logger - used to log the exception details.public ClientException(java.lang.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,
java.lang.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,
java.lang.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 java.lang.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 java.lang.String getHttpError()
null if this
object was constructed using an actual exception that occurred.public java.lang.String getMessage()
getMessage in class java.lang.ThrowableCopyright © 2018. All Rights Reserved.