|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.restfb.exception.FacebookException
com.restfb.exception.FacebookResponseStatusException
public class FacebookResponseStatusException
Indicates that the Legacy REST Facebook endpoint returned JSON which indicates an error condition.
This exception may also be thrown when executing certain operations against the Graph API, e.g. FQL queries or Batch API calls.
Example:
{"error_code": 2, "error_msg": "The service is not available at this time.", ...}
.
Constructor Summary | |
---|---|
FacebookResponseStatusException(Integer errorCode,
String errorMessage)
Creates an exception with the given message and error code. |
Method Summary | |
---|---|
Integer |
getErrorCode()
Gets the Facebook API error code. |
String |
getErrorMessage()
Gets the Facebook API error message. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FacebookResponseStatusException(Integer errorCode, String errorMessage)
errorCode
- Value of the Facebook response attribute error_code
.errorMessage
- Value of the Facebook response attribute error_msg
.Method Detail |
---|
public Integer getErrorCode()
public String getErrorMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |