PEAR_Error
Description
Standard PEAR error class for PHP 4
This class is supserseded by PEAR_Exception in PHP 5
Located in /pear/PEAR.php (line 816)
PEAR_Error
Variable Summary
Method Summary
![Constructor Constructor](../media/images/Constructor.png)
Variables
Methods
PEAR_Error constructor
PEAR_Error
PEAR_Error
([string $message = 'unknown error'], [int $code = null], [int $mode = null], [mixed $options = null], [string $userinfo = null])
- string $message: message
- int $code: (optional) error code
- int $mode: (optional) error mode, one of: PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, PEAR_ERROR_DIE, PEAR_ERROR_TRIGGER, PEAR_ERROR_CALLBACK or PEAR_ERROR_EXCEPTION
- mixed $options: (optional) error level, _OR_ in the case of PEAR_ERROR_CALLBACK, the callback function or object/method tuple.
- string $userinfo: (optional) additional user/debug info
Get the call backtrace from where the error was generated.
Supported with PHP 4.3.0 or newer.
array
getBacktrace
([int $frame = null])
- int $frame: (optional) what frame to fetch
Get additional debug information supplied by the application.
string
getDebugInfo
()
Documentation generated on Mon, 05 Mar 2007 21:16:52 +0000 by phpDocumentor 1.3.1