Moodle  2.2.1
http://www.collinsharper.com
PEAR_Exception Class Reference

Public Member Functions

 __construct ($message, $p2=null, $p3=null)
 getErrorData ()
 getCause ()
 getCauseMessage (&$causes)
 getTraceSafe ()
 getErrorClass ()
 getErrorMethod ()
 __toString ()
 toHtml ()
 toText ()

Static Public Member Functions

static addObserver ($callback, $label= 'default')
static removeObserver ($label= 'default')
static getUniqueId ()

Data Fields

const OBSERVER_PRINT = -2
const OBSERVER_TRIGGER = -4
const OBSERVER_DIE = -8

Protected Attributes

 $cause

Detailed Description

Definition at line 97 of file Exception.php.


Constructor & Destructor Documentation

__construct ( message,
p2 = null,
p3 = null 
)

Supported signatures:

Definition at line 121 of file Exception.php.


Member Function Documentation

Definition at line 315 of file Exception.php.

Here is the call graph for this function:

static addObserver ( callback,
label = 'default' 
) [static]
Parameters:
mixed$callback- A valid php callback, see php func is_callable()
  • A PEAR_Exception::OBSERVER_* constant
  • An array(const PEAR_Exception::OBSERVER_*, mixed $options)
string$labelThe name of the observer. Use this if you want to remove it later with removeObserver()

Definition at line 156 of file Exception.php.

getCause ( )

Returns the exception that caused this exception to be thrown public

Returns:
Exception|array The context of the exception

Definition at line 225 of file Exception.php.

getCauseMessage ( &$  causes)

Function must be public to call on caused exceptions

Parameters:
array

Definition at line 234 of file Exception.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 303 of file Exception.php.

Here is the call graph for this function:

Return specific error information that can be used for more detailed error messages or translation.

This method may be overridden in child exception classes in order to add functionality not present in PEAR_Exception and is a placeholder to define API

The returned array must be an associative array of parameter => value like so:

 array('name' => $name, 'context' => array(...))
 
Returns:
array

Definition at line 215 of file Exception.php.

Definition at line 309 of file Exception.php.

Here is the call graph for this function:

Definition at line 291 of file Exception.php.

Here is the caller graph for this function:

static getUniqueId ( ) [static]
Returns:
int unique identifier for an observer

Definition at line 169 of file Exception.php.

static removeObserver ( label = 'default') [static]

Definition at line 161 of file Exception.php.

toHtml ( )

Definition at line 323 of file Exception.php.

Here is the call graph for this function:

Here is the caller graph for this function:

toText ( )

Definition at line 377 of file Exception.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$cause [protected]

Definition at line 102 of file Exception.php.

const OBSERVER_DIE = -8

Definition at line 101 of file Exception.php.

const OBSERVER_PRINT = -2

Definition at line 99 of file Exception.php.

const OBSERVER_TRIGGER = -4

Definition at line 100 of file Exception.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations