public class BranchError
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ERR_API_LVL_14_NEEDED |
static int |
ERR_BRANCH_DUPLICATE_REFERRAL_CODE |
static int |
ERR_BRANCH_DUPLICATE_URL |
static int |
ERR_BRANCH_INIT_FAILED |
static int |
ERR_BRANCH_INVALID_REQUEST |
static int |
ERR_BRANCH_KEY_INVALID |
static int |
ERR_BRANCH_NO_CONNECTIVITY_STATUS |
static int |
ERR_BRANCH_NO_SHARE_OPTION |
static int |
ERR_BRANCH_NOT_INSTANTIATED |
static int |
ERR_BRANCH_REDEEM_REWARD |
static int |
ERR_BRANCH_REQ_TIMED_OUT |
static int |
ERR_BRANCH_RESOURCE_CONFLICT |
static int |
ERR_BRANCH_UNABLE_TO_REACH_SERVERS |
static int |
ERR_INVALID_REFERRAL_CODE |
static int |
ERR_NO_INTERNET_PERMISSION |
static int |
ERR_NO_SESSION |
| Constructor and Description |
|---|
BranchError(java.lang.String failMsg,
int statusCode) |
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Returns an error code for this Branch Error.
|
java.lang.String |
getMessage()
Returns the message explaining the error.
|
java.lang.String |
toString()
Overridden toString method for this object; returns the error message rather than the
object's address.
|
public static final int ERR_NO_SESSION
public static final int ERR_NO_INTERNET_PERMISSION
public static final int ERR_INVALID_REFERRAL_CODE
public static final int ERR_BRANCH_INIT_FAILED
public static final int ERR_BRANCH_DUPLICATE_URL
public static final int ERR_BRANCH_DUPLICATE_REFERRAL_CODE
public static final int ERR_BRANCH_REDEEM_REWARD
public static final int ERR_API_LVL_14_NEEDED
public static final int ERR_BRANCH_NOT_INSTANTIATED
public static final int ERR_BRANCH_NO_SHARE_OPTION
public static final int ERR_BRANCH_REQ_TIMED_OUT
public static final int ERR_BRANCH_UNABLE_TO_REACH_SERVERS
public static final int ERR_BRANCH_NO_CONNECTIVITY_STATUS
public static final int ERR_BRANCH_KEY_INVALID
public static final int ERR_BRANCH_RESOURCE_CONFLICT
public static final int ERR_BRANCH_INVALID_REQUEST
public java.lang.String getMessage()
Returns the message explaining the error.
String value that can be used in error logging or for dialog display
to the user.public int getErrorCode()
Returns an error code for this Branch Error.
Integer specifying the error code for this error. Value will be one of the error code defined in branch errors.public java.lang.String toString()
Overridden toString method for this object; returns the error message rather than the object's address.
toString in class java.lang.ObjectString value representing the object's current state.