Package com.restfb.exception
Klasse FacebookResponseStatusException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.restfb.exception.FacebookException
com.restfb.exception.FacebookErrorMessageException
com.restfb.exception.FacebookResponseStatusException
- Alle implementierten Schnittstellen:
Serializable
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.", ...}
.
- Autor:
- Mark Allen
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungFacebookResponseStatusException
(Integer errorCode, String errorMessage, JsonObject rawError) Creates an exception with the given message and error code. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the Facebook API error code.Gets the Facebook API error message.Von Klasse geerbte Methoden com.restfb.exception.FacebookErrorMessageException
getDebugHeaderInfo, getRawErrorJson, setDebugHeaderInfo, setRawErrorJson
Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
FacebookResponseStatusException
Creates an exception with the given message and error code.- Parameter:
errorCode
- Value of the Facebook response attributeerror_code
.errorMessage
- Value of the Facebook response attributeerror_msg
.
-
-
Methodendetails
-
getErrorCode
Gets the Facebook API error code.- Gibt zurück:
- The Facebook API error code.
-
getErrorMessage
Gets the Facebook API error message.- Gibt zurück:
- The Facebook API error message.
-