Package com.restfb.exception
Interface FacebookExceptionMapper
- All Known Implementing Classes:
DefaultFacebookExceptionGenerator.DefaultGraphFacebookExceptionMapper
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
-
Method Summary
Modifier and TypeMethodDescriptionexceptionForTypeAndMessage
(ExceptionInformation container) Given a Facebook API exception type and message, generates an instance of the correspondingFacebookGraphException
or one of its subclasses.
-
Method Details
-
exceptionForTypeAndMessage
Given a Facebook API exception type and message, generates an instance of the correspondingFacebookGraphException
or one of its subclasses.- Parameters:
container
- container for all data needed to create the associatedFacebookException
- Returns:
- An appropriate
FacebookException
subclass.
-