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 ofFacebookException
.- Since:
- 1.6
- Author:
- Mark Allen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FacebookException
exceptionForTypeAndMessage(ExceptionInformation container)
Given a Facebook API exception type and message, generates an instance of the correspondingFacebookGraphException
or one of its subclasses.
-
-
-
Method Detail
-
exceptionForTypeAndMessage
FacebookException exceptionForTypeAndMessage(ExceptionInformation container)
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.
-
-