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 ofFacebookExceptionMapper
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
Constructors Modifier Constructor Description protected
DefaultGraphFacebookExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
DefaultGraphFacebookExceptionMapper
protected DefaultGraphFacebookExceptionMapper()
-
-
Method Detail
-
exceptionForTypeAndMessage
public FacebookException exceptionForTypeAndMessage(ExceptionInformation container)
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.
-
-