eZPublish  3.8
PEAR_Error Class Reference

Public Member Functions

 addUserInfo ($info)
 
 getCallback ()
 Get the callback function/method from an error object. More...
 
 getCode ()
 Get error code from an error object. More...
 
 getDebugInfo ()
 Get additional debug information supplied by the application. More...
 
 getMessage ()
 Get the error message from an error object. More...
 
 getMode ()
 Get the error mode from an error object. More...
 
 getType ()
 Get the name of this error/exception. More...
 
 getUserInfo ()
 Get additional user-supplied information. More...
 
 PEAR_Error ($message= 'unknown error', $code=null, $mode=null, $options=null, $userinfo=null)
 PEAR_Error constructor. More...
 
 toString ()
 Make a string representation of this object. More...
 

Public Attributes

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

Member Function Documentation

PEAR_Error::addUserInfo (   $info)
PEAR_Error::getCallback ( )

Get the callback function/method from an error object.

Returns
mixed callback function or object/method array public
PEAR_Error::getCode ( )

Get error code from an error object.

Returns
int error code public
PEAR_Error::getDebugInfo ( )

Get additional debug information supplied by the application.

Returns
string debug information public
PEAR_Error::getMessage ( )

Get the error message from an error object.

Returns
string full error message public

Referenced by PEAR_Error().

PEAR_Error::getMode ( )

Get the error mode from an error object.

Returns
int error mode public
PEAR_Error::getType ( )

Get the name of this error/exception.

Returns
string error/exception name (type) public
PEAR_Error::getUserInfo ( )

Get additional user-supplied information.

Returns
string user-supplied information public

Referenced by getDebugInfo().

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

PEAR_Error constructor.

Parameters
$messageerror message
$code(optional) error code
$mode(optional) error mode, one of: PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, PEAR_ERROR_DIE, PEAR_ERROR_TRIGGER or PEAR_ERROR_CALLBACK
$level(optional) error level, OR in the case of PEAR_ERROR_CALLBACK, the callback function or object/method tuple.

public

PEAR_Error::toString ( )

Make a string representation of this object.

Returns
string a string with an object summary public

Member Data Documentation

PEAR_Error::$code = -1

Referenced by getCode(), and PEAR_Error().

PEAR_Error::$error_message_prefix = ''
PEAR_Error::$level = E_USER_NOTICE
PEAR_Error::$message = ''

Referenced by PEAR_Error().

PEAR_Error::$mode = PEAR_ERROR_RETURN

Referenced by getMode(), and PEAR_Error().

PEAR_Error::$userinfo = ''

Referenced by getUserInfo(), and PEAR_Error().


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