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
public abstract class FacebookErrorMessageException extends FacebookException
Abstract class to provide access to the JSON Facebook provides in case of an errorSometimes a developer needs to access the plain error to get a more in depth view to the error.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
FacebookErrorMessageException(String message)
protected
FacebookErrorMessageException(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DebugHeaderInfo
getDebugHeaderInfo()
returns the debug header info that is connected with this Facebook call.JsonObject
getRawErrorJson()
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 Detail
-
FacebookErrorMessageException
protected FacebookErrorMessageException(String message)
-
FacebookErrorMessageException
protected FacebookErrorMessageException(String message, Throwable cause)
-
-
Method Detail
-
getRawErrorJson
public JsonObject getRawErrorJson()
return the raw error as JSON, may benull
- Returns:
- raw error
-
setRawErrorJson
protected void setRawErrorJson(JsonObject rawError)
-
getDebugHeaderInfo
public DebugHeaderInfo 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
public void setDebugHeaderInfo(DebugHeaderInfo debugHeaderInfo)
-
-