Package com.restfb.exception
Class FacebookOAuthException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.restfb.exception.FacebookException
-
- com.restfb.exception.FacebookErrorMessageException
-
- com.restfb.exception.FacebookGraphException
-
- com.restfb.exception.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 Summary
Constructors Constructor Description 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.
-
Method Summary
-
Methods inherited from class com.restfb.exception.FacebookGraphException
getErrorCode, getErrorData, getErrorData, getErrorMessage, getErrorSubcode, getErrorType, getErrorUserMessage, getErrorUserTitle, getFbtraceId, getHttpStatusCode, getIsTransient
-
Methods inherited from class com.restfb.exception.FacebookErrorMessageException
getDebugHeaderInfo, getRawErrorJson, setDebugHeaderInfo, setRawErrorJson
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 attributeerror.type
.errorMessage
- Value of the Facebook response attributeerror.message
.errorCode
- Value of the Facebook response attributeerror.code
.errorSubcode
- Value of the Facebook response attributeerror.error_subcode
.httpStatusCode
- The HTTP status code returned by the server, e.g. 500.userTitle
- Value of the Facebook response attributeerror.error_user_title
.userMessage
- Value of the Facebook response attributeerror.error_user_message
.
-
-