Services_Facebook
[ class tree: Services_Facebook ] [ index: Services_Facebook ] [ all elements ]

Class: Services_Facebook_Exception

Source Location: /Services_Facebook-0.1.2/Services/Facebook/Exception.php

Class Overview

Exception
   |
   --Services_Facebook_Exception

Services_Facebook_Exception


Author(s):

Version:

  • Release: 0.1.2

Variables

Methods


Inherited Variables

Class: Exception (Internal Class)

$code
$file
$line
$message
$previous
$string
$trace

Inherited Methods

Class: Exception (Internal Class)

constructor __construct ( [$message = ], [$code = ], [$previous = ] )
getCode ( )
getFile ( )
getLine ( )
getMessage ( )
getPrevious ( )
getTrace ( )
getTraceAsString ( )
__clone ( )
__toString ( )
__wakeup ( )

Class Details

[line 37]
Services_Facebook_Exception

All calls to the API can result in a few different errors; an HTTP error, an API error or some other random cURL error. In all cases the package will throw a Services_Facebook_Exception.



[ Top ]


Class Variables

$lastCall =  ''

[line 47]

Last API call

This is the URI of the API call that generated the error. The error message and code from the error is passed as well.

  • Var: URI of last API call
  • Access: protected

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 56]

Services_Facebook_Exception __construct( string $message, [int $code = 0], [string $lastCall = ''])

Constructor
  • Access: public

Overrides Exception::constructor __construct ( [$message = ], [$code = ], [$previous = ] ) (parent method not documented)

Parameters:

string   $message   —  The exception's message/info
int   $code   —  The error code for the exception
string   $lastCall   —  URI of last API call

[ Top ]

getLastCall   [line 68]

string getLastCall( )

Returns last API call

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:24:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.