com.restfb.exception
Interface FacebookExceptionMapper
public interface FacebookExceptionMapper
Specifies a method for mapping Graph and Old REST API exceptions to
corresponding instances of FacebookException
.
- Since:
- 1.6
- Author:
- Mark Allen
exceptionForTypeAndMessage
FacebookException exceptionForTypeAndMessage(Integer errorCode,
String type,
String message)
- Given a Facebook API exception type and message, generates an instance of
the corresponding
FacebookGraphException
or one of its subclasses.
- Parameters:
errorCode
- Old REST API exception error code field, e.g. 190.type
- Graph API exception type field, e.g. "OAuthException".message
- Graph or Old REST API message field, e.g.
"Invalid access token signature."
- Returns:
- An appropriate
FacebookException
subclass.
RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.