Package com.restfb.exception
Klasse FacebookGraphException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.restfb.exception.FacebookException
com.restfb.exception.FacebookErrorMessageException
com.restfb.exception.FacebookGraphException
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
FacebookOAuthException
,FacebookQueryParseException
Indicates that the Facebook Graph API endpoint returned JSON which indicates an error condition.
Example:
{
"error": {
"type": "Exception",
"message": "...",
"code": 210,
"error_subcode": 123,
"error_user_title": "A title",
"error_user_msg": "A message"
}
}
- Seit:
- 1.5
- Autor:
- Mark Allen
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungFacebookGraphException
(String errorType, String errorMessage, Integer errorCode, Integer errorSubcode, Integer httpStatusCode, String errorUserTitle, String errorUserMessage, Boolean isTransient, JsonObject rawError) Creates an exception with the given error type and message. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungGets the Facebook API error code.Gets the Facebook Graph API error message.Gets the Facebook API error subcode.Gets the Facebook Graph API error type.Gets the Facebook API error user message.Gets the Facebook API error user title.Gets the Facebook API errorfbtrace_id
.Gets the HTTP status code returned by the server.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
-
FacebookGraphException
public FacebookGraphException(String errorType, String errorMessage, Integer errorCode, Integer errorSubcode, Integer httpStatusCode, String errorUserTitle, String errorUserMessage, Boolean isTransient, JsonObject rawError) Creates an exception with the given error type and message.- Parameter:
errorType
- Value of the Facebook response attributeerror.type
.errorMessage
- Value of the Facebook response attributeerror.message
.errorCode
- Value of the Facebook response attributeerror.code
.errorSubcode
- Value of the Facebook response attributeerror.error_subcode
.httpStatusCode
- The HTTP status code returned by the server, e.g. 500.errorUserTitle
- Value of the Facebook response attributeerror.error_user_title
.errorUserMessage
- Value of the Facebook response attributeerror.error_user_msg
.isTransient
-
-
-
Methodendetails
-
getErrorType
Gets the Facebook Graph API error type.- Gibt zurück:
- The Facebook Graph API error type.
-
getErrorMessage
Gets the Facebook Graph API error message.- Gibt zurück:
- The Facebook Graph API error message.
-
getErrorCode
Gets the Facebook API error code.- Gibt zurück:
- The Facebook API error code.
-
getErrorSubcode
Gets the Facebook API error subcode.- Gibt zurück:
- The Facebook API error subcode.
-
getHttpStatusCode
Gets the HTTP status code returned by the server.- Gibt zurück:
- The HTTP status code returned by the server.
- Seit:
- 1.6.10
-
getErrorUserTitle
Gets the Facebook API error user title.- Gibt zurück:
- the Facebook API error user title
- Seit:
- 1.7.1
-
getErrorUserMessage
Gets the Facebook API error user message.- Gibt zurück:
- the Facebook API error user message
- Seit:
- 1.7.1
-
getIsTransient
-
getFbtraceId
Gets the Facebook API errorfbtrace_id
. Internal support identifier. When reporting a bug related to a Graph API call, include the fbtrace_id to help us find log data for debugging.- Gibt zurück:
- the Facebook API error
fbtrace_id
-