Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<card>
# FacebookRequestException for the Facebook SDK for PHP

Represents an exception thrown by executing a Facebook request.
</card>

<card>
## Facebook\FacebookRequestException {#overview}

This base class has several subclasses:

`FacebookAuthorizationException`  
`FacebookClientException`  
`FacebookPermissionException`  
`FacebookServerException`  
`FacebookThrottleException`  
`FacebookOtherException`  

Whenever a FacebookRequestException is thrown, it will be one of these types.
They are derived from the error information here: https://developers.facebook.com/docs/graph-api/using-graph-api/#errors
</card>

<card>
## Instance Methods {#instance-methods}

`FacebookRequestException` extends from the base `\Exception` class, so `getCode()` and `getMessage()` are available by default.

### getHttpStatusCode {#gethttpstatus}
`getHttpStatusCode()`  
Returns the HTTP status code returned with this exception.
### getSubErrorCode {#getsuberrorcode}
`getSubErrorCode()`  
Returns the numeric sub-error code returned from Facebook.
### getErrorType {#geterrortype}
`getErrorType()`  
Returns the type of error as a string.
### getResponse {#getresponse}
`getResponse()`  
Returns the decoded response used to create the exception.
### getRawResponse {#getrawresponse}
`getRawResponse()`  
Returns the raw response used to create the exception.
</card>

Commits for Nextrek/Android/SmartCharging/endPoints/fb_SDK/docs/FacebookRequestException.fbmd

Diff revisions: vs.
Revision Author Commited Message
507 FSallustio picture FSallustio Thu 20 Aug, 2015 07:51:22 +0000

Merge ramo stable con la nightly.