Sync Android SDK  0.8.5
com.twilio.sync.ErrorInfo Class Reference

Representation of a Sync Error object. More...

Public Member Functions

int getStatus ()
 Get error category as a classifier. More...
 
int getCode ()
 Returns unique code for given error. More...
 
String getMessage ()
 Returns error message of given error. More...
 

Static Public Attributes

static int MISMATCHING_TOKEN_UPDATE = -5
 Signaled to listener of SyncClient.updateToken() if updated token does not match the original token. More...
 
static int LOGIC_ERROR = -6
 Signaled to success listener if logic assumptions are violated (e.g. More...
 

Detailed Description

Representation of a Sync Error object.

Member Function Documentation

int com.twilio.sync.ErrorInfo.getCode ( )

Returns unique code for given error.

Returns
unique code for given error
String com.twilio.sync.ErrorInfo.getMessage ( )

Returns error message of given error.

Returns
error message of given error
int com.twilio.sync.ErrorInfo.getStatus ( )

Get error category as a classifier.

Local client errors get status 0, network related errors have their HTTP error code as a status.

Returns
Error status.

Member Data Documentation

int com.twilio.sync.ErrorInfo.LOGIC_ERROR = -6
static

Signaled to success listener if logic assumptions are violated (e.g.

client not initialized, call parameters invalid, etc.)

int com.twilio.sync.ErrorInfo.MISMATCHING_TOKEN_UPDATE = -5
static

Signaled to listener of SyncClient.updateToken() if updated token does not match the original token.

Corrective course of action is to shutdown and re-create SyncClient.