Class XML_Parser_Error

Description

error class, replaces PEAR_Error

An instance of this class will be returned if an error occurs inside XML_Parser.

There are three advantages over using the standard PEAR_Error:

  • All messages will be prefixed
  • check for XML_Parser error, using is_a( $error, 'XML_Parser_Error' )
  • messages can be generated from the xml_parser resource

Located in /PEAR/XML/Parser.php (line 646)

PEAR_Error
   |
   --XML_Parser_Error
Variable Summary
Method Summary
 XML_Parser_Error XML_Parser_Error ([string|resource $msgorparser = 'unknown error'], integer $code, [integer $mode = PEAR_ERROR_RETURN], [integer $level = E_USER_NOTICE])
Variables
string $error_message_prefix = 'XML_Parser: ' (line 655)

prefix for all messages


Redefinition of:
PEAR_Error::$error_message_prefix

Inherited Variables

Inherited from PEAR_Error

PEAR_Error::$backtrace
PEAR_Error::$code
PEAR_Error::$level
PEAR_Error::$message
PEAR_Error::$mode
PEAR_Error::$userinfo
Methods
Constructor XML_Parser_Error (line 672)

construct a new error instance

You may either pass a message or an xml_parser resource as first parameter. If a resource has been passed, the last error that happened will be retrieved and returned.

  • access: public
XML_Parser_Error XML_Parser_Error ([string|resource $msgorparser = 'unknown error'], integer $code, [integer $mode = PEAR_ERROR_RETURN], [integer $level = E_USER_NOTICE])
  • string|resource $msgorparser: message or parser resource
  • integer $code: error code
  • integer $mode: error handling
  • integer $level: error level

Inherited Methods

Inherited From PEAR_Error

 PEAR_Error::PEAR_Error()
 PEAR_Error::addUserInfo()
 PEAR_Error::getBacktrace()
 PEAR_Error::getCallback()
 PEAR_Error::getCode()
 PEAR_Error::getDebugInfo()
 PEAR_Error::getMessage()
 PEAR_Error::getMode()
 PEAR_Error::getType()
 PEAR_Error::getUserInfo()
 PEAR_Error::toString()

Documentation generated on Mon, 04 Dec 2006 11:09:47 -0500 by phpDocumentor 1.3.0RC3