![]() |
Bearsampp 2026.9.23
|
Public Member Functions | |
| __construct ($message='unknown error', $code=null, $mode=null, $options=null, $userinfo=null) | |
| __toString () | |
| addUserInfo ($info) | |
| getBacktrace ($frame=null) | |
| getCallback () | |
| getCode () | |
| getDebugInfo () | |
| getMessage () | |
| getMode () | |
| getType () | |
| getUserInfo () | |
| PEAR_Error ( $message='unknown error', $code=null, $mode=null, $options=null, $userinfo=null) | |
| toString () | |
Data Fields | |
| $backtrace = null | |
| $callback = null | |
| $code = -1 | |
| $error_message_prefix = '' | |
| $level = E_USER_NOTICE | |
| $message = '' | |
| $mode = PEAR_ERROR_RETURN | |
| $userinfo = '' | |
| __construct | ( | $message = 'unknown error', | |
| $code = null, | |||
| $mode = null, | |||
| $options = null, | |||
| $userinfo = null ) |
PEAR_Error constructor
| 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 |
@access public
Definition at line 894 of file PEAR.php.
References $code, $message, $mode, $options, $userinfo, exit, getMessage(), PEAR_ERROR_CALLBACK, PEAR_ERROR_DIE, PEAR_ERROR_EXCEPTION, PEAR_ERROR_PRINT, PEAR_ERROR_RETURN, and PEAR_ERROR_TRIGGER.
Referenced by PEAR_Error().
| __toString | ( | ) |
Definition at line 1087 of file PEAR.php.
References getMessage().
| addUserInfo | ( | $info | ) |
| getBacktrace | ( | $frame = null | ) |
Get the call backtrace from where the error was generated. Supported with PHP 4.3.0 or newer.
| int | $frame | (optional) what frame to fetch |
Definition at line 1067 of file PEAR.php.
References $backtrace.
| getCallback | ( | ) |
| getCode | ( | ) |
| getDebugInfo | ( | ) |
Get additional debug information supplied by the application.
Definition at line 1054 of file PEAR.php.
References getUserInfo().
| getMessage | ( | ) |
Get the error message from an error object.
Definition at line 1010 of file PEAR.php.
Referenced by __construct(), and __toString().
| getMode | ( | ) |
| getType | ( | ) |
| getUserInfo | ( | ) |
Get additional user-supplied information.
Definition at line 1043 of file PEAR.php.
References $userinfo.
Referenced by getDebugInfo().
| PEAR_Error | ( | $message = 'unknown error', | |
| $code = null, | |||
| $mode = null, | |||
| $options = null, | |||
| $userinfo = null ) |
Only here for backwards compatibility.
Class "Cache_Error" still uses it, among others.
| string | $message | Message |
| int | $code | Error code |
| int | $mode | Error mode |
| mixed | $options | See __construct() |
| string | $userinfo | Additional user/debug info |
Definition at line 975 of file PEAR.php.
References $code, $message, $mode, $options, $userinfo, and __construct().
| toString | ( | ) |
Make a string representation of this object.
Definition at line 1098 of file PEAR.php.
References $callback, E_USER_ERROR, PEAR_ERROR_CALLBACK, PEAR_ERROR_DIE, PEAR_ERROR_PRINT, PEAR_ERROR_RETURN, and PEAR_ERROR_TRIGGER.
| $backtrace = null |
Definition at line 871 of file PEAR.php.
Referenced by getBacktrace().
| $callback = null |
Definition at line 872 of file PEAR.php.
Referenced by getCallback(), and toString().
| $code = -1 |
Definition at line 868 of file PEAR.php.
Referenced by __construct(), getCode(), and PEAR_Error().
| $message = '' |
Definition at line 869 of file PEAR.php.
Referenced by __construct(), and PEAR_Error().
| $mode = PEAR_ERROR_RETURN |
Definition at line 866 of file PEAR.php.
Referenced by __construct(), getMode(), and PEAR_Error().
| $userinfo = '' |
Definition at line 870 of file PEAR.php.
Referenced by __construct(), getUserInfo(), and PEAR_Error().