Moodle  2.2.1
http://www.collinsharper.com
PEAR_Error Class Reference
Inheritance diagram for PEAR_Error:

Public Member Functions

 PEAR_Error ($message= 'unknown error', $code=null, $mode=null, $options=null, $userinfo=null)
 getMode ()
 getCallback ()
 getMessage ()
 getCode ()
 getType ()
 getUserInfo ()
 getDebugInfo ()
 getBacktrace ($frame=null)
 addUserInfo ($info)
 __toString ()
 toString ()

Data Fields

 $error_message_prefix = ''
 $mode = PEAR_ERROR_RETURN
 $level = E_USER_NOTICE
 $code = -1
 $message = ''
 $userinfo = ''
 $backtrace = null

Detailed Description

Definition at line 796 of file PEAR.php.


Member Function Documentation

Definition at line 1004 of file PEAR.php.

Here is the call graph for this function:

addUserInfo ( info)

Definition at line 995 of file PEAR.php.

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.

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.

getCode ( )

Get error code from an error object

Returns:
int error code public

Definition at line 938 of file PEAR.php.

Get additional debug information supplied by the application.

Returns:
string debug information public

Definition at line 971 of file PEAR.php.

Here is the call graph for this function:

Get the error message from an error object.

Returns:
string full error message public

Definition at line 927 of file PEAR.php.

Here is the caller graph for this function:

getMode ( )

Get the error mode from an error object.

Returns:
int error mode public

Definition at line 905 of file PEAR.php.

getType ( )

Get the name of this error/exception.

Returns:
string error/exception name (type) public

Definition at line 949 of file PEAR.php.

Get additional user-supplied information.

Returns:
string user-supplied information public

Definition at line 960 of file PEAR.php.

Here is the caller graph for this function:

PEAR_Error ( message = 'unknown error',
code = null,
mode = null,
options = null,
userinfo = null 
)

PEAR_Error constructor

Parameters:
string$messagemessage
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.

Here is the call graph for this function:

Here is the caller graph for this function:

toString ( )

Make a string representation of this object.

Returns:
string a string with an object summary public

Definition at line 1015 of file PEAR.php.


Field Documentation

$backtrace = null

Definition at line 804 of file PEAR.php.

$code = -1

Definition at line 801 of file PEAR.php.

$error_message_prefix = ''

Reimplemented in HTML_QuickForm_Error, and XML_Parser_Error.

Definition at line 798 of file PEAR.php.

$level = E_USER_NOTICE

Definition at line 800 of file PEAR.php.

$message = ''

Definition at line 802 of file PEAR.php.

Definition at line 799 of file PEAR.php.

$userinfo = ''

Definition at line 803 of file PEAR.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations