XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
PEAR_Error Class Reference

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 ()
 

Public Attributes

 $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

PEAR_Error::__toString ( )

Definition at line 1004 of file PEAR.php.

PEAR_Error::addUserInfo (   $info)

Definition at line 995 of file PEAR.php.

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.

PEAR_Error::getCode ( )

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.

PEAR_Error::getMode ( )

Get the error mode from an error object.

Returns
int error mode public

Definition at line 905 of file PEAR.php.

PEAR_Error::getType ( )

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$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.

PEAR_Error::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.

Member Data Documentation

PEAR_Error::$backtrace = null

Definition at line 804 of file PEAR.php.

PEAR_Error::$code = -1

Definition at line 801 of file PEAR.php.

PEAR_Error::$error_message_prefix = ''

Definition at line 798 of file PEAR.php.

PEAR_Error::$level = E_USER_NOTICE

Definition at line 800 of file PEAR.php.

PEAR_Error::$message = ''

Definition at line 802 of file PEAR.php.

PEAR_Error::$mode = PEAR_ERROR_RETURN

Definition at line 799 of file PEAR.php.

PEAR_Error::$userinfo = ''

Definition at line 803 of file PEAR.php.


The documentation for this class was generated from the following file: