Campustream 1.0
A social network MQP for WPI
FacebookApiException Class Reference

Public Member Functions

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

Protected Attributes

 $result

Detailed Description

Thrown when an API call returns an exception.

Author:
Naitik Shah <naitik@facebook.com>

Definition at line 15 of file facebook.php.


Constructor & Destructor Documentation

__construct ( result)

Make a new API Exception with the given result.

Parameters:
Array$resultthe result from the API server

Definition at line 27 of file facebook.php.


Member Function Documentation

__toString ( )

To make debugging easier.

Returns:
String the string representation of the error

Definition at line 84 of file facebook.php.

getResult ( )

Return the associated result object returned by the API server.

Returns:
Array the result from the API server

Definition at line 53 of file facebook.php.

getType ( )

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

Returns:
String

Definition at line 63 of file facebook.php.


Field Documentation

$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: