public class ErrorInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CLIENT_ERROR |
static int |
LOGIC_ERROR
Signaled to success listener if logic assumptions are violated (e.g.
|
static int |
MISMATCHING_TOKEN_UPDATE
Signaled to listener of
SyncClient.updateToken()
if updated token does not match the original token. |
Constructor and Description |
---|
ErrorInfo(int errorStatus,
int errorCode,
java.lang.String errorMessage) |
ErrorInfo(int errorCode,
java.lang.String errorMessage) |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Returns unique code for given error
|
java.lang.String |
getMessage()
Returns error message of given error
|
int |
getStatus()
Get error category as a classifier.
|
java.lang.String |
toString() |
public static int CLIENT_ERROR
public static int MISMATCHING_TOKEN_UPDATE
SyncClient.updateToken()
if updated token does not match the original token. Corrective course of action
is to shutdown and re-create SyncClient.public static int LOGIC_ERROR
public ErrorInfo(int errorCode, java.lang.String errorMessage)
public ErrorInfo(int errorStatus, int errorCode, java.lang.String errorMessage)
public int getStatus()
public int getCode()
public java.lang.String getMessage()
public java.lang.String toString()
toString
in class java.lang.Object