com.facebook
Enum FacebookRequestError.Category

java.lang.Object
  extended by java.lang.Enum<FacebookRequestError.Category>
      extended by com.facebook.FacebookRequestError.Category
All Implemented Interfaces:
Serializable, Comparable<FacebookRequestError.Category>
Enclosing class:
FacebookRequestError

public static enum FacebookRequestError.Category
extends Enum<FacebookRequestError.Category>

An enum that represents the Facebook SDK classification for the error that occurred.


Enum Constant Summary
AUTHENTICATION_REOPEN_SESSION
          Indicates that the error is authentication related, and that the app should close the session and reopen it.
AUTHENTICATION_RETRY
          Indicates that the error is authentication related, and that the app should retry the request after some user action.
BAD_REQUEST
          Indicates that the error is an application error resulting in a bad or malformed request to the server.
CLIENT
          Indicates that this is a client-side error.
OTHER
          Indicates that the error is Facebook-related but cannot be categorized at this time, and is likely newer than the current version of the SDK.
PERMISSION
          Indicates that the error is permission related.
SERVER
          Indicates that the error implies the server had an unexpected failure or may be temporarily unavailable.
THROTTLING
          Indicates that the error results from the server throttling the client.
 
Method Summary
static FacebookRequestError.Category valueOf(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

AUTHENTICATION_RETRY

public static final FacebookRequestError.Category AUTHENTICATION_RETRY
Indicates that the error is authentication related, and that the app should retry the request after some user action.


AUTHENTICATION_REOPEN_SESSION

public static final FacebookRequestError.Category AUTHENTICATION_REOPEN_SESSION
Indicates that the error is authentication related, and that the app should close the session and reopen it.


PERMISSION

public static final FacebookRequestError.Category PERMISSION
Indicates that the error is permission related.


SERVER

public static final FacebookRequestError.Category SERVER
Indicates that the error implies the server had an unexpected failure or may be temporarily unavailable.


THROTTLING

public static final FacebookRequestError.Category THROTTLING
Indicates that the error results from the server throttling the client.


OTHER

public static final FacebookRequestError.Category OTHER
Indicates that the error is Facebook-related but cannot be categorized at this time, and is likely newer than the current version of the SDK.


BAD_REQUEST

public static final FacebookRequestError.Category BAD_REQUEST
Indicates that the error is an application error resulting in a bad or malformed request to the server.


CLIENT

public static final FacebookRequestError.Category CLIENT
Indicates that this is a client-side error. Examples of this can include, but are not limited to, JSON parsing errors or IOExceptions.

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(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null