Class FacebookOAuthException

  • All Implemented Interfaces:
    Serializable

    public class FacebookOAuthException
    extends FacebookGraphException
    Indicates that the Facebook Graph API endpoint returned JSON which indicates an error condition related to the OAuth token included in the request.

    Example: { "error": { "type": "OAuthException", "message": "(#210) User not visible", "code": 210, "error_subcode": 123, "error_user_title": "A title", "error_user_msg": "A message" } }

    Since:
    1.6
    Author:
    Mark Allen
    See Also:
    Serialized Form
    • Constructor Detail

      • FacebookOAuthException

        public FacebookOAuthException​(String errorType,
                                      String errorMessage,
                                      Integer errorCode,
                                      Integer errorSubcode,
                                      Integer httpStatusCode,
                                      String userTitle,
                                      String userMessage,
                                      Boolean isTransient,
                                      JsonObject rawError)
        Creates an exception with the given error type and message.
        Parameters:
        errorType - Value of the Facebook response attribute error.type.
        errorMessage - Value of the Facebook response attribute error.message.
        errorCode - Value of the Facebook response attribute error.code.
        errorSubcode - Value of the Facebook response attribute error.error_subcode.
        httpStatusCode - The HTTP status code returned by the server, e.g. 500.
        userTitle - Value of the Facebook response attribute error.error_user_title.
        userMessage - Value of the Facebook response attribute error.error_user_message.