|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.restfb.FacebookException
com.restfb.FacebookGraphException
public class FacebookGraphException
Indicates that the Facebook Graph API endpoint returned JSON which indicates an error condition.
Example:
{
"error": {
"type": "QueryParseException",
"message": "Some of the aliases you requested do not exist: xxxxx"
}
}
| Constructor Summary | |
|---|---|
FacebookGraphException(String errorType,
String errorMessage)
Creates an exception with the given error type and message. |
|
| Method Summary | |
|---|---|
String |
getErrorMessage()
Gets the Facebook Graph API error message. |
String |
getErrorType()
Gets the Facebook Graph API error type. |
| 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 FacebookGraphException(String errorType,
String errorMessage)
errorType - Value of the Facebook response attribute error.type.errorMessage - Value of the Facebook response attribute error.message.| Method Detail |
|---|
public String getErrorType()
public String getErrorMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||