|
Open Journal Systems
3.3.0
|
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 | |
| $code = -1 | |
| $error_message_prefix = '' | |
| $level = E_USER_NOTICE | |
| $message = '' | |
| $mode = PEAR_ERROR_RETURN | |
| $userinfo = '' | |
| PEAR_Error::__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 901 of file PEAR.php.
References $code, $message, $mode, $userinfo, getMessage(), and PEAR\getStaticProperty().
Referenced by PEAR_Error().
| PEAR_Error::__toString | ( | ) |
Definition at line 1094 of file PEAR.php.
References getMessage().
| PEAR_Error::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 1074 of file PEAR.php.
References $backtrace.
| PEAR_Error::getCallback | ( | ) |
| PEAR_Error::getCode | ( | ) |
| PEAR_Error::getDebugInfo | ( | ) |
Get additional debug information supplied by the application.
Definition at line 1061 of file PEAR.php.
References getUserInfo().
| PEAR_Error::getMessage | ( | ) |
Get the error message from an error object.
Definition at line 1017 of file PEAR.php.
Referenced by __construct(), and __toString().
| PEAR_Error::getMode | ( | ) |
| PEAR_Error::getType | ( | ) |
| PEAR_Error::getUserInfo | ( | ) |
Get additional user-supplied information.
Definition at line 1050 of file PEAR.php.
References $userinfo.
Referenced by getDebugInfo().
| PEAR_Error::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 982 of file PEAR.php.
References $code, $message, $mode, $userinfo, and __construct().
| PEAR_Error::toString | ( | ) |
| PEAR_Error::$backtrace = null |
Definition at line 879 of file PEAR.php.
Referenced by getBacktrace().
| PEAR_Error::$code = -1 |
Definition at line 876 of file PEAR.php.
Referenced by __construct(), getCode(), and PEAR_Error().
| PEAR_Error::$message = '' |
Definition at line 877 of file PEAR.php.
Referenced by __construct(), and PEAR_Error().
| PEAR_Error::$mode = PEAR_ERROR_RETURN |
Definition at line 874 of file PEAR.php.
Referenced by __construct(), getMode(), and PEAR_Error().
| PEAR_Error::$userinfo = '' |
Definition at line 878 of file PEAR.php.
Referenced by __construct(), getUserInfo(), and PEAR_Error().