Android SDK Version
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FacebookRequestError.Category>
Enclosing class:

public static enum FacebookRequestError.Category
extends java.lang.Enum<FacebookRequestError.Category>
An enum that represents the Facebook SDK classification for the error that occurred.
Enum Constant Summary
Enum Constant and Description
LOGIN_RECOVERABLE
Indicates that the error is authentication related.
OTHER
Indicates that the error is not transient or recoverable by the Facebook SDK.
TRANSIENT
Indicates that the error is transient, the request can be attempted again.
Method Summary
Modifier and TypeMethod and Description
static FacebookRequestError.CategoryvalueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
static FacebookRequestError.Category[]values()
Returns an array containing the constants of this enum type, in the order they are declared.
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Enum Constant Detail

LOGIN_RECOVERABLE

public static final FacebookRequestError.Category LOGIN_RECOVERABLE
Indicates that the error is authentication related. The com.facebook.login.LoginManager#resolveError(android.app.Activity, GraphResponse) method or com.facebook.login.LoginManager#resolveError(android.support.v4.app.Fragment, GraphResponse) method can be called to recover from this error.

OTHER

public static final FacebookRequestError.Category OTHER
Indicates that the error is not transient or recoverable by the Facebook SDK.

TRANSIENT

public static final FacebookRequestError.Category TRANSIENT
Indicates that the error is transient, the request can be attempted again.
Method Detail

values

public static FacebookRequestError.Category[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (FacebookRequestError.Category c : FacebookRequestError.Category.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static FacebookRequestError.Category valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null