-
public class BranchErrorReturns a general error if the server back-end is down.
-
-
Field Summary
Fields Modifier and Type Field Description public final static intERR_NO_SESSIONpublic final static intERR_NO_INTERNET_PERMISSIONpublic final static intERR_INVALID_REFERRAL_CODEpublic final static intERR_BRANCH_INIT_FAILEDpublic final static intERR_BRANCH_DUPLICATE_URLpublic final static intERR_BRANCH_DUPLICATE_REFERRAL_CODEpublic final static intERR_BRANCH_REDEEM_REWARDpublic final static intERR_API_LVL_14_NEEDEDpublic final static intERR_BRANCH_NOT_INSTANTIATEDpublic final static intERR_BRANCH_NO_SHARE_OPTIONpublic final static intERR_BRANCH_REQ_TIMED_OUTpublic final static intERR_BRANCH_UNABLE_TO_REACH_SERVERSpublic final static intERR_BRANCH_NO_CONNECTIVITYpublic final static intERR_BRANCH_KEY_INVALIDpublic final static intERR_BRANCH_RESOURCE_CONFLICTpublic final static intERR_BRANCH_INVALID_REQUESTpublic final static intERR_BRANCH_TRACKING_DISABLEDpublic final static intERR_BRANCH_ALREADY_INITIALIZEDpublic final static intERR_IMPROPER_REINITIALIZATIONpublic final static intERR_BRANCH_TASK_TIMEOUT
-
Constructor Summary
Constructors Constructor Description BranchError(String failMsg, int statusCode)
-
Method Summary
Modifier and Type Method Description StringgetMessage()Returns the message explaining the error. intgetErrorCode()Returns an error code for this Branch Error. StringtoString()Overridden toString method for this object; returns the error message rather than theobject's address. -
-
Constructor Detail
-
BranchError
BranchError(String failMsg, int statusCode)
-
-
Method Detail
-
getMessage
String getMessage()
Returns the message explaining the error.
-
getErrorCode
int getErrorCode()
Returns an error code for this Branch Error.
-
-
-
-