PEAR_Error Class Info:
- Class Declaration:
class PEAR_Error
- File name:
- Description:
Standard PEAR error class for PHP 4
This class is supserseded by {@link PEAR_Exception} in PHP 5
- Link
- Array
- Category
pear
- Package
- PEAR
- Author
Stig Bakken <ssb@php.net>
Tomas V.V. Cox <cox@idecnet.com>
Gregory Beaver <cellog@php.net>
- Copyright
1997-2006 The PHP Group
- License
http://opensource.org/licenses/bsd-license.php New BSD License
- Version
Release: 1.9.0
- See
- Since
Class available since PHP 4.0.2
Properties:
-
backtrace
-
code
-
error_message_prefix
-
level
-
message
-
mode
-
userinfo
getBacktrace
topGet the call backtrace from where the error was generated. Supported with PHP 4.3.0 or newer.
- Parameters:
-
-
int $frame optional NULL
(optional) what frame to fetch
-
- Method defined in:
- /usr/share/php/PEAR.php on line 1050
- Return
array Backtrace, or NULL if not available.
- Access
public
getCallback
topGet the callback function/method from an error object.
- Method defined in:
- /usr/share/php/PEAR.php on line 963
- Return
mixed callback function or object/method array
- Access
public
getCode
topGet error code from an error object
- Method defined in:
- /usr/share/php/PEAR.php on line 992
- Return
int error code
- Access
public
getDebugInfo
topGet additional debug information supplied by the application.
- Method defined in:
- /usr/share/php/PEAR.php on line 1034
- Return
string debug information
- Access
public
getMessage
topGet the error message from an error object.
- Method defined in:
- /usr/share/php/PEAR.php on line 977
- Return
string full error message
- Access
public
getMode
topGet the error mode from an error object.
- Method defined in:
- /usr/share/php/PEAR.php on line 950
- Return
int error mode
- Access
public
getType
topGet the name of this error/exception.
- Method defined in:
- /usr/share/php/PEAR.php on line 1006
- Return
string error/exception name (type)
- Access
public
getUserInfo
topGet additional user-supplied information.
- Method defined in:
- /usr/share/php/PEAR.php on line 1020
- Return
string user-supplied information
- Access
public
PEAR_Error
topPEAR_Error constructor
PEAR_ERROR_PRINT, PEAR_ERROR_DIE, PEAR_ERROR_TRIGGER, PEAR_ERROR_CALLBACK or PEAR_ERROR_EXCEPTION
PEAR_ERROR_CALLBACK, the callback function or object/method tuple.
- Parameters:
-
-
string $message optional 'unknown error'
message
-
int $code optional NULL
(optional) error code
-
int $mode optional NULL
(optional) error mode, one of: PEAR_ERROR_RETURN,
-
mixed $options optional NULL
(optional) error level, OR in the case of
-
string $userinfo optional NULL
(optional) additional user/debug info
-
- Method defined in:
- /usr/share/php/PEAR.php on line 866
- Access
public
