Definition at line 796 of file PEAR.php.
PEAR_Error::__toString |
( |
| ) |
|
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.
- Parameters
-
int | $frame | (optional) what frame to fetch |
- Returns
- array Backtrace, or NULL if not available. public
Definition at line 984 of file PEAR.php.
PEAR_Error::getCallback |
( |
| ) |
|
Get the callback function/method from an error object.
- Returns
- mixed callback function or object/method array public
Definition at line 916 of file PEAR.php.
Get error code from an error object
- Returns
- int error code public
Definition at line 938 of file PEAR.php.
PEAR_Error::getDebugInfo |
( |
| ) |
|
Get additional debug information supplied by the application.
- Returns
- string debug information public
Definition at line 971 of file PEAR.php.
PEAR_Error::getMessage |
( |
| ) |
|
Get the error message from an error object.
- Returns
- string full error message public
Definition at line 927 of file PEAR.php.
Get the error mode from an error object.
- Returns
- int error mode public
Definition at line 905 of file PEAR.php.
Get the name of this error/exception.
- Returns
- string error/exception name (type) public
Definition at line 949 of file PEAR.php.
PEAR_Error::getUserInfo |
( |
| ) |
|
Get additional user-supplied information.
- Returns
- string user-supplied information public
Definition at line 960 of file PEAR.php.
PEAR_Error::PEAR_Error |
( |
|
$message = 'unknown error' , |
|
|
|
$code = null , |
|
|
|
$mode = null , |
|
|
|
$options = null , |
|
|
|
$userinfo = null |
|
) |
| |
PEAR_Error constructor
- Parameters
-
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 |
public
Definition at line 826 of file PEAR.php.
Make a string representation of this object.
- Returns
- string a string with an object summary public
Definition at line 1015 of file PEAR.php.
PEAR_Error::$backtrace = null |
PEAR_Error::$error_message_prefix = '' |
PEAR_Error::$level = E_USER_NOTICE |
PEAR_Error::$message = '' |
PEAR_Error::$userinfo = '' |
The documentation for this class was generated from the following file: