public final class FacebookRequestErrorClassification
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EC_APP_TOO_MANY_CALLS |
static int |
EC_INVALID_SESSION |
static int |
EC_INVALID_TOKEN |
static int |
EC_RATE |
static int |
EC_SERVICE_UNAVAILABLE |
static int |
EC_TOO_MANY_USER_ACTION_CALLS |
static int |
EC_USER_TOO_MANY_CALLS |
static java.lang.String |
KEY_LOGIN_RECOVERABLE |
static java.lang.String |
KEY_NAME |
static java.lang.String |
KEY_OTHER |
static java.lang.String |
KEY_RECOVERY_MESSAGE |
static java.lang.String |
KEY_TRANSIENT |
Modifier and Type | Method and Description |
---|---|
FacebookRequestError.Category |
classify(int errorCode,
int errorSubCode,
boolean isTransient) |
static FacebookRequestErrorClassification |
createFromJSON(org.json.JSONArray jsonArray) |
static FacebookRequestErrorClassification |
getDefaultErrorClassification() |
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> |
getLoginRecoverableErrors() |
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> |
getOtherErrors() |
java.lang.String |
getRecoveryMessage(FacebookRequestError.Category category) |
java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> |
getTransientErrors() |
public static final int EC_SERVICE_UNAVAILABLE
public static final int EC_APP_TOO_MANY_CALLS
public static final int EC_RATE
public static final int EC_USER_TOO_MANY_CALLS
public static final int EC_INVALID_SESSION
public static final int EC_INVALID_TOKEN
public static final int EC_TOO_MANY_USER_ACTION_CALLS
public static final java.lang.String KEY_RECOVERY_MESSAGE
public static final java.lang.String KEY_NAME
public static final java.lang.String KEY_OTHER
public static final java.lang.String KEY_TRANSIENT
public static final java.lang.String KEY_LOGIN_RECOVERABLE
public java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> getOtherErrors()
public java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> getTransientErrors()
public java.util.Map<java.lang.Integer,java.util.Set<java.lang.Integer>> getLoginRecoverableErrors()
public java.lang.String getRecoveryMessage(FacebookRequestError.Category category)
public FacebookRequestError.Category classify(int errorCode, int errorSubCode, boolean isTransient)
public static FacebookRequestErrorClassification getDefaultErrorClassification()
public static FacebookRequestErrorClassification createFromJSON(org.json.JSONArray jsonArray)