ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($message='unknown error', $code=null, $mode=null, $options=null, $userinfo=null) | |
PEAR_Error constructor. More... | |
getMode () | |
Get the error mode from an error object. More... | |
getCallback () | |
Get the callback function/method from an error object. More... | |
getMessage () | |
Get the error message from an error object. More... | |
getCode () | |
Get error code from an error object. More... | |
getType () | |
Get the name of this error/exception. More... | |
getUserInfo () | |
Get additional user-supplied information. More... | |
getDebugInfo () | |
Get additional debug information supplied by the application. More... | |
getBacktrace ($frame=null) | |
Get the call backtrace from where the error was generated. More... | |
addUserInfo ($info) | |
__toString () | |
toString () | |
Make a string representation of this object. More... | |
Data Fields | |
$error_message_prefix = '' | |
$mode = PEAR_ERROR_RETURN | |
$level = E_USER_NOTICE | |
$code = -1 | |
$message = '' | |
$userinfo = '' | |
$backtrace = null | |
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 865 of file PEAR.php.
References $code, $format, $message, $mode, $options, $userinfo, getMessage(), PEAR\getStaticProperty(), PEAR_ERROR_CALLBACK, PEAR_ERROR_DIE, PEAR_ERROR_EXCEPTION, PEAR_ERROR_PRINT, PEAR_ERROR_RETURN, PEAR_ERROR_TRIGGER, and sprintf.
PEAR_Error::__toString | ( | ) |
Definition at line 1059 of file PEAR.php.
References getMessage().
PEAR_Error::addUserInfo | ( | $info | ) |
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 1034 of file PEAR.php.
References $backtrace, and defined.
PEAR_Error::getCallback | ( | ) |
PEAR_Error::getCode | ( | ) |
PEAR_Error::getDebugInfo | ( | ) |
Get additional debug information supplied by the application.
Definition at line 1018 of file PEAR.php.
References getUserInfo().
PEAR_Error::getMessage | ( | ) |
Get the error message from an error object.
Definition at line 961 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 1004 of file PEAR.php.
References $userinfo.
Referenced by getDebugInfo().
PEAR_Error::toString | ( | ) |
Make a string representation of this object.
Definition at line 1072 of file PEAR.php.
References PEAR_ERROR_CALLBACK, PEAR_ERROR_DIE, PEAR_ERROR_PRINT, PEAR_ERROR_RETURN, PEAR_ERROR_TRIGGER, and sprintf.
PEAR_Error::$backtrace = null |
Definition at line 840 of file PEAR.php.
Referenced by getBacktrace().
PEAR_Error::$code = -1 |
Definition at line 837 of file PEAR.php.
Referenced by MDB2_Error\__construct(), __construct(), and getCode().
PEAR_Error::$level = E_USER_NOTICE |
Definition at line 836 of file PEAR.php.
Referenced by MDB2_Error\__construct().
PEAR_Error::$message = '' |
Definition at line 838 of file PEAR.php.
Referenced by __construct().
PEAR_Error::$mode = PEAR_ERROR_RETURN |
Definition at line 835 of file PEAR.php.
Referenced by MDB2_Error\__construct(), __construct(), and getMode().
PEAR_Error::$userinfo = '' |
Definition at line 839 of file PEAR.php.
Referenced by __construct(), and getUserInfo().