|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.cybersource.ws.client.ClientException
public class ClientException
Exception class used by both Basic and XML clients.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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.Throwable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||