Support Joomla!

Packages

Package: PEAR

License

Content on this site is copyright © 2005 - 2008 Open Source Matters Inc and can be used in accordance with the Joomla! Electronic Documentation License. Some parts of this website may be subject to other licenses.

 Class PEAR_Error

Description

Standard PEAR error class for PHP 4

This class is supserseded by PEAR_Exception in PHP 5

Located in /pear/PEAR.php (line 831)

Class PEAR_Error
Variable Summary
Variable mixed $backtrace
Variable mixed $code
Variable mixed $level
Variable mixed $message
Variable mixed $mode
Variable mixed $userinfo
Method Summary
Constructor PEAR_Error PEAR_Error ([string $message = 'unknown error'], [int $code = null], [int $mode = null], [mixed $options = null], [string $userinfo = null])
Method void addUserInfo ( $info)
Method array getBacktrace ([int $frame = null])
Method mixed getCallback ()
Method int getCode ()
Method string getDebugInfo ()
Method string getMessage ()
Method int getMode ()
Method string getType ()
Method string getUserInfo ()
Method string toString ()
Method void __toString ()
Variables
mixed $backtrace = null (line 841)
mixed $code = -1 (line 838)
mixed $error_message_prefix = '' (line 835)
mixed $level = E_USER_NOTICE (line 837)
mixed $message = '' (line 839)
mixed $mode = PEAR_ERROR_RETURN (line 836)
mixed $userinfo = '' (line 840)
Methods
Constructor PEAR_Error (line 866)

PEAR_Error constructor

  • access: public
PEAR_Error PEAR_Error ([string $message = 'unknown error'], [int $code = null], [int $mode = null], [mixed $options = null], [string $userinfo = null])
  • 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
addUserInfo (line 1056)
void addUserInfo ( $info)
  • $info
getBacktrace (line 1042)

Get the call backtrace from where the error was generated.

Supported with PHP 4.3.0 or newer.

  • return: Backtrace, or NULL if not available.
  • access: public
array getBacktrace ([int $frame = null])
  • int $frame: (optional) what frame to fetch
getCallback (line 955)

Get the callback function/method from an error object.

  • return: callback function or object/method array
  • access: public
mixed getCallback ()
getCode (line 984)

Get error code from an error object

  • return: error code
  • access: public
int getCode ()
getDebugInfo (line 1026)

Get additional debug information supplied by the application.

  • return: debug information
  • access: public
string getDebugInfo ()
getMessage (line 969)

Get the error message from an error object.

  • return: full error message
  • access: public
string getMessage ()
getMode (line 942)

Get the error mode from an error object.

  • return: error mode
  • access: public
int getMode ()
getType (line 998)

Get the name of this error/exception.

  • return: error/exception name (type)
  • access: public
string getType ()
getUserInfo (line 1012)

Get additional user-supplied information.

  • return: user-supplied information
  • access: public
string getUserInfo ()
toString (line 1080)

Make a string representation of this object.

  • return: a string with an object summary
  • access: public
string toString ()
__toString (line 1067)
void __toString ()

Documentation generated on Sat, 14 Nov 2009 11:17:46 +0000 by phpDocumentor 1.3.1