Extends DOMXpath to throw ErrorExceptions instead of raising errors.

package Default

 Methods

Adds an error to the stack of errors

addError(integer $errno, string $errstr = '', string $errfile = '', integer $errline = 0) : void

Parameters

$errno

integer

$errstr

string

$errfile

string

$errline

integer

Evaluates an XPath expression; throws an ErrorException instead of raising an error

queryWithErrorException(string $expression) : \DOMNodeList

Parameters

$expression

string

The XPath expression to evaluate.

Exceptions

\ErrorException

Returns

\DOMNodeList

 Properties

 

A stack of ErrorExceptions created via addError()

$errors : array

Default

array(null)