Package com.restfb.exception
Class FacebookErrorMessageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.restfb.exception.FacebookException
com.restfb.exception.FacebookErrorMessageException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FacebookGraphException
,FacebookResponseStatusException
Abstract class to provide access to the JSON Facebook provides in case of an error
Sometimes a developer needs to access the plain error to get a more in depth view to the error.
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
FacebookErrorMessageException
(String message) protected
FacebookErrorMessageException
(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionreturns the debug header info that is connected with this Facebook call.return the raw error as JSON, may benull
void
setDebugHeaderInfo
(DebugHeaderInfo debugHeaderInfo) protected void
setRawErrorJson
(JsonObject rawError) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FacebookErrorMessageException
-
FacebookErrorMessageException
-
-
Method Details
-
getRawErrorJson
return the raw error as JSON, may benull
- Returns:
- raw error
-
setRawErrorJson
-
getDebugHeaderInfo
returns the debug header info that is connected with this Facebook call.you can get information like trace ids, limits and more.
- Returns:
- the DebugHeaderInfo or null
-
setDebugHeaderInfo
-