|
Moodle
2.2.1
http://www.collinsharper.com
|
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 | |
Definition at line 97 of file Exception.php.
| __construct | ( | $ | message, |
| $ | p2 = null, |
||
| $ | p3 = null |
||
| ) |
Supported signatures:
| string | exception message |
| int|Exception|PEAR_Error|array|null | exception cause |
| int|null | exception code or null |
Definition at line 121 of file Exception.php.
| __toString | ( | ) |
| static addObserver | ( | $ | callback, |
| $ | label = 'default' |
||
| ) | [static] |
| mixed | $callback | - A valid php callback, see php func is_callable()
|
| string | $label | The 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
Definition at line 225 of file Exception.php.
| getCauseMessage | ( | &$ | causes | ) |
Function must be public to call on caused exceptions
| array |
Definition at line 234 of file Exception.php.


| getErrorClass | ( | ) |
| getErrorData | ( | ) |
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(...))
Definition at line 215 of file Exception.php.
| getErrorMethod | ( | ) |
| getTraceSafe | ( | ) |
| static getUniqueId | ( | ) | [static] |
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.


| toText | ( | ) |
Definition at line 377 of file Exception.php.


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