public class GoSellError
extends java.lang.Object
implements java.io.Serializable
getThrowable() returns null, then getErrorCode() and getErrorBody() will give you an explanation about error.
getErrorCode() or getErrorBody() return ERROR_CODE_UNAVAILABLE and null accordingly, then use getThrowable() to obtain error details.| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_CODE_UNAVAILABLE
The constant ERROR_CODE_UNAVAILABLE.
|
private java.lang.String |
errorBody |
private int |
errorCode |
private java.lang.Throwable |
throwable |
| Constructor and Description |
|---|
GoSellError(int errorCode,
java.lang.String errorBody,
java.lang.Throwable throwable)
Instantiates a new Go sell error.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getErrorBody()
Gets error body.
|
int |
getErrorCode()
Gets error code.
|
java.lang.String |
getErrorMessage()
Get error message string.
|
java.lang.Throwable |
getThrowable()
Gets throwable.
|
public static final int ERROR_CODE_UNAVAILABLE
private int errorCode
private java.lang.String errorBody
private java.lang.Throwable throwable
GoSellError(int errorCode,
java.lang.String errorBody,
java.lang.Throwable throwable)
errorCode - the error codeerrorBody - the error bodythrowable - the throwablepublic java.lang.String getErrorMessage()
public int getErrorCode()
public java.lang.String getErrorBody()
public java.lang.Throwable getThrowable()
Throwable, returned by connection (timeout, failed to connect etc.)