\FacebookApiException

Thrown when an API call returns an exception.

Summary

Methods
Properties
Constants
__construct()
getResult()
getType()
__toString()
No public properties found
No constants found
No protected methods found
$result
N/A
No private methods found
No private properties found
N/A

Properties

$result

$result : mixed

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

Type

mixed

Methods

__construct()

__construct(array  $result) 

Make a new API Exception with the given result.

Parameters

array $result

The result from the API server

getResult()

getResult() : array

Return the associated result object returned by the API server.

Returns

array —

The result from the API server

getType()

getType() : string

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

Returns

string

__toString()

__toString() : string

To make debugging easier.

Returns

string —

The string representation of the error