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
mixed
$backtrace
mixed
$code
mixed
$error_message_prefix
mixed
$level
mixed
$message
mixed
$mode
mixed
$userinfo
Method Summary
PEAR_Error
PEAR_Error
([string $message = 'unknown error'], [int $code = null], [int $mode = null], [mixed $options = null], [string $userinfo = null])
mixed
getCallback
()
int
getCode
()
string
getDebugInfo
()
string
getMessage
()
int
getMode
()
string
getType
()
string
getUserInfo
()
string
toString
()
Variables
Methods
Constructor PEAR_Error (line 851)
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
getBacktrace (line 1019)
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
getDebugInfo (line 1003)
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