public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathException { Sequence arg = getArgument(0).eval(contextSequence, contextItem); if (arg.getLength() == 0) throw new XPathException(getASTNode(), "The query generated an error"); else throw new XPathException(getASTNode(), arg.getStringValue());
public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathException { QName errQName = DEFAULT_ERR; String message = "An error has been raised by the query"; if (args.length > 0) { if (args[0].getLength() != 0) errQName = ((QNameValue) args[0].itemAt(0)).getQName(); if (args.length > 1) message = args[1].getStringValue(); if (args.length == 3) message += ": " + serializeErrorObject(args[2]); } throw new XPathException(getASTNode(), message + " (" + errQName.getNamespaceURI() + '#' + errQName.getLocalName() + ')');
	public Sequence eval(Sequence contextSequence, Item contextItem)		throws XPathException {		Sequence arg = getArgument(0).eval(contextSequence, contextItem);		if (arg.getLength() == 0)			throw new XPathException(getASTNode(), "The query generated an error");		else			throw new XPathException(getASTNode(), arg.getStringValue());	}