ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Copyright 2011 Facebook, Inc. More...
Public Member Functions | |
__construct ($result) | |
Make a new API Exception with the given result. More... | |
getResult () | |
Return the associated result object returned by the API server. More... | |
getType () | |
Returns the associated type for the error. More... | |
__toString () | |
To make debugging easier. More... | |
Protected Attributes | |
$result | |
The result from the API server that represents the exception information. More... | |
Copyright 2011 Facebook, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Thrown when an API call returns an exception.
Definition at line 30 of file base_facebook.php.
FacebookApiException::__construct | ( | $result | ) |
Make a new API Exception with the given result.
array | $result | The result from the API server |
Definition at line 42 of file base_facebook.php.
References $code, and $result.
FacebookApiException::__toString | ( | ) |
To make debugging easier.
Definition at line 100 of file base_facebook.php.
References $message, and getType().
FacebookApiException::getResult | ( | ) |
Return the associated result object returned by the API server.
Definition at line 68 of file base_facebook.php.
References $result.
FacebookApiException::getType | ( | ) |
Returns the associated type for the error.
This will default to 'Exception' when a type is not available.
Definition at line 78 of file base_facebook.php.
References $error.
Referenced by __toString().
|
protected |
The result from the API server that represents the exception information.
Definition at line 35 of file base_facebook.php.
Referenced by __construct(), BaseFacebook\_graph(), BaseFacebook\_restserver(), getResult(), BaseFacebook\makeRequest(), and BaseFacebook\throwAPIException().