Package com.restfb.exception.generator
Class DefaultFacebookExceptionGenerator.DefaultGraphFacebookExceptionMapper
java.lang.Object
com.restfb.exception.generator.DefaultFacebookExceptionGenerator.DefaultGraphFacebookExceptionMapper
- All Implemented Interfaces:
FacebookExceptionMapper
- Enclosing class:
- DefaultFacebookExceptionGenerator
protected static class DefaultFacebookExceptionGenerator.DefaultGraphFacebookExceptionMapper
extends Object
implements FacebookExceptionMapper
A canned implementation of
FacebookExceptionMapper
that maps Graph API exceptions.
Thanks to BatchFB's Jeff Schnitzer for doing some of the legwork to find these exception type names.
- Since:
- 1.6.3
- Author:
- Mark Allen
-
Constructor Summary
-
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.
-
Constructor Details
-
DefaultGraphFacebookExceptionMapper
protected DefaultGraphFacebookExceptionMapper()
-
-
Method Details
-
exceptionForTypeAndMessage
Description copied from interface:FacebookExceptionMapper
Given a Facebook API exception type and message, generates an instance of the correspondingFacebookGraphException
or one of its subclasses.- Specified by:
exceptionForTypeAndMessage
in interfaceFacebookExceptionMapper
- Parameters:
container
- container for all data needed to create the associatedFacebookException
- Returns:
- An appropriate
FacebookException
subclass.
-