|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct ($message, $p2=null, $p3=null) | |
| __toString () | |
| getCause () | |
| getCauseMessage (&$causes) | |
| getErrorClass () | |
| getErrorData () | |
| getErrorMethod () | |
| getTraceSafe () | |
| toHtml () | |
| toText () | |
Static Public Member Functions | |
| static | addObserver ($callback, $label='default') |
| static | getUniqueId () |
| static | removeObserver ($label='default') |
Data Fields | |
| const | OBSERVER_DIE = -8 |
| const | OBSERVER_PRINT = -2 |
| const | OBSERVER_TRIGGER = -4 |
Protected Member Functions | |
| signal () | |
Protected Attributes | |
| $cause | |
Definition at line 95 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
| PEAR_Exception::__construct | ( | $message, | |
$p2 = null, |
|||
$p3 = null |
|||
| ) |
Supported signatures:
| string | $message | exception message |
| int | Exception | PEAR_Error | array | null | $p2 | exception cause |
| int | null | $p3 | exception code or null |
Definition at line 120 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
References signal().
| PEAR_Exception::__toString | ( | ) |
|
static |
Add an exception observer
| 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 161 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
| PEAR_Exception::getCause | ( | ) |
Returns the exception that caused this exception to be thrown
Definition at line 245 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
References $cause.
| PEAR_Exception::getCauseMessage | ( | & | $causes | ) |
Function must be public to call on caused exceptions
| array | $causes | Array that gets filled. |
Definition at line 257 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
References $cause, and getTraceSafe().
| PEAR_Exception::getErrorClass | ( | ) |
Gets the first class of the backtrace
Definition at line 338 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
References getTraceSafe().
| PEAR_Exception::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 235 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
| PEAR_Exception::getErrorMethod | ( | ) |
Gets the first method of the backtrace
Definition at line 349 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
References getTraceSafe().
| PEAR_Exception::getTraceSafe | ( | ) |
Build a backtrace and return it
Definition at line 321 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
Referenced by getCauseMessage(), getErrorClass(), getErrorMethod(), and toHtml().
|
static |
Generate a unique ID for an observer
Definition at line 183 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
|
static |
Remove an exception observer
| string | $label | Name of the observer |
Definition at line 173 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
|
protected |
Send a signal to all observers
Definition at line 193 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
References OBSERVER_DIE, OBSERVER_PRINT, and OBSERVER_TRIGGER.
Referenced by __construct().
| PEAR_Exception::toHtml | ( | ) |
Generates a HTML representation of the exception
Definition at line 376 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
References $cause, getCauseMessage(), and getTraceSafe().
Referenced by __toString().
| PEAR_Exception::toText | ( | ) |
Generates text representation of the exception and stack trace
Definition at line 443 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
References $cause, and getCauseMessage().
Referenced by __toString().
|
protected |
Definition at line 100 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
Referenced by getCause(), getCauseMessage(), toHtml(), and toText().
| const PEAR_Exception::OBSERVER_DIE = -8 |
Definition at line 99 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
Referenced by signal().
| const PEAR_Exception::OBSERVER_PRINT = -2 |
Definition at line 97 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
Referenced by signal().
| const PEAR_Exception::OBSERVER_TRIGGER = -4 |
Definition at line 98 of file generic/pln/vendor/pear/pear_exception/PEAR/Exception.php.
Referenced by signal().