See Release Notes
Long Term Support Release
Differences Between: [Versions 310 and 401] [Versions 311 and 401] [Versions 39 and 401] [Versions 400 and 401]
PEAR_Exception PHP versions 4 and 5
Author: | Tomas V. V. Cox <cox@idecnet.com> |
Author: | Hans Lellelid <hans@velum.net> |
Author: | Bertrand Mansion <bmansion@mamasam.com> |
Author: | Greg Beaver <cellog@php.net> |
Copyright: | 1997-2009 The Authors |
License: | http://opensource.org/licenses/bsd-license.php New BSD License |
Version: | CVS: $Id$ |
File Size: | 389 lines (14 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
PEAR_Exception:: (14 methods):
__construct()
addObserver()
removeObserver()
getUniqueId()
signal()
getErrorData()
getCause()
getCauseMessage()
getTraceSafe()
getErrorClass()
getErrorMethod()
__toString()
toHtml()
toText()
Class: PEAR_Exception - X-Ref
Base PEAR_Exception Class__construct($message, $p2 = null, $p3 = null) X-Ref |
Supported signatures: - PEAR_Exception(string $message); - PEAR_Exception(string $message, int $code); - PEAR_Exception(string $message, Exception $cause); - PEAR_Exception(string $message, Exception $cause, int $code); - PEAR_Exception(string $message, PEAR_Error $cause); - PEAR_Exception(string $message, PEAR_Error $cause, int $code); - PEAR_Exception(string $message, array $causes); - PEAR_Exception(string $message, array $causes, int $code); param: string exception message param: int|Exception|PEAR_Error|array|null exception cause param: int|null exception code or null |
addObserver($callback, $label = 'default') X-Ref |
param: mixed $callback - A valid php callback, see php func is_callable() param: string $label The name of the observer. Use this if you want |
removeObserver($label = 'default') X-Ref |
No description |
getUniqueId() X-Ref |
return: int unique identifier for an observer |
signal() X-Ref |
No description |
getErrorData() X-Ref |
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: <pre> array('name' => $name, 'context' => array(...)) </pre> return: array |
getCause() X-Ref |
Returns the exception that caused this exception to be thrown return: Exception|array The context of the exception |
getCauseMessage(&$causes) X-Ref |
Function must be public to call on caused exceptions param: array |
getTraceSafe() X-Ref |
No description |
getErrorClass() X-Ref |
No description |
getErrorMethod() X-Ref |
No description |
__toString() X-Ref |
No description |
toHtml() X-Ref |
No description |
toText() X-Ref |
No description |