com.restfb.exception
Class FacebookOAuthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.restfb.exception.FacebookException
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": "Invalid access token signature."
}
}
- Since:
- 1.6
- Author:
- Mark Allen
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
FacebookOAuthException
public FacebookOAuthException(String errorType,
String errorMessage)
- 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
.
RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.