![]() |
Bearsampp 2026.9.23
|
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 Attributes | |
| $cause | |
Private Member Functions | |
| signal () | |
Private Attributes | |
| $_trace | |
Static Private Attributes | |
| static | $_observers = array() |
| static | $_uniqueid = 0 |
Definition at line 96 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 120 of file Exception.php.
References signal().
| __toString | ( | ) |
Definition at line 314 of file Exception.php.
References toHtml(), and toText().
|
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 155 of file Exception.php.
| getCause | ( | ) |
Returns the exception that caused this exception to be thrown @access public
Definition at line 224 of file Exception.php.
References $cause.
| getCauseMessage | ( | & | $causes | ) |
Function must be public to call on caused exceptions
| array |
Definition at line 233 of file Exception.php.
References $cause, and getTraceSafe().
Referenced by toHtml(), and toText().
| getErrorClass | ( | ) |
Definition at line 302 of file Exception.php.
References getTraceSafe().
| 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 214 of file Exception.php.
| getErrorMethod | ( | ) |
Definition at line 308 of file Exception.php.
References getTraceSafe().
| getTraceSafe | ( | ) |
Definition at line 290 of file Exception.php.
References $_trace.
Referenced by getCauseMessage(), getErrorClass(), getErrorMethod(), and toHtml().
|
static |
Definition at line 168 of file Exception.php.
|
static |
Definition at line 160 of file Exception.php.
|
private |
Definition at line 173 of file Exception.php.
Referenced by __construct().
| toHtml | ( | ) |
Definition at line 322 of file Exception.php.
References $cause, getCauseMessage(), and getTraceSafe().
Referenced by __toString().
| toText | ( | ) |
Definition at line 376 of file Exception.php.
References $cause, and getCauseMessage().
Referenced by __toString().
|
staticprivate |
Definition at line 102 of file Exception.php.
|
private |
Definition at line 104 of file Exception.php.
Referenced by getTraceSafe().
|
staticprivate |
Definition at line 103 of file Exception.php.
|
protected |
Definition at line 101 of file Exception.php.
Referenced by getCause(), getCauseMessage(), toHtml(), and toText().
| const OBSERVER_DIE = -8 |
Definition at line 100 of file Exception.php.
| const OBSERVER_PRINT = -2 |
Definition at line 98 of file Exception.php.
| const OBSERVER_TRIGGER = -4 |
Definition at line 99 of file Exception.php.