Public Member Functions | Protected Attributes

FacebookApiException Class Reference

Inheritance diagram for FacebookApiException:
Collaboration diagram for FacebookApiException:

List of all members.

Public Member Functions

 __construct ($result)
 getResult ()
 getType ()
 __toString ()

Protected Attributes

 $result

Detailed Description

Thrown when an API call returns an exception.

Author:
Naitik Shah <[email protected]>

Definition at line 15 of file facebook.php.


Constructor & Destructor Documentation

FacebookApiException.__construct ( result  ) 

Make a new API Exception with the given result.

Parameters:
Array $result the result from the API server

Definition at line 27 of file facebook.php.


Member Function Documentation

FacebookApiException.__toString (  ) 

To make debugging easier.

Returns:
String the string representation of the error

Definition at line 63 of file facebook.php.

FacebookApiException.getResult (  ) 

Return the associated result object returned by the API server.

Returns:
Array the result from the API server

Definition at line 41 of file facebook.php.

FacebookApiException.getType (  ) 

Returns the associated type for the error. This will default to 'Exception' when a type is not available.

Returns:
String

Definition at line 51 of file facebook.php.


Member Data Documentation

FacebookApiException.$result [protected]

The result from the API server that represents the exception information.

Definition at line 20 of file facebook.php.


The documentation for this class was generated from the following file: