public static class TryCatchAdjunct.TryCatchFeed extends ItemFeed
Constructor and Description |
---|
TryCatchFeed(Expression exp,
Feed out,
XPathContext context) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Finish evaluating the expression.
|
void |
dynamicError(XPathException err)
Report a dynamic error.
|
SequenceReceiver |
getReceiver()
Get a receiver to which start and end events for documents and elements can be
written.
|
void |
open(Terminator terminator)
Start evaluating the expression.
|
void |
processItem(Item item)
Supply one item towards the streamed input of the expression
|
endSelectedParentNode, getContext, getExpression, getPipelineConfiguration, getResult, getTerminator, hasFailed, processItems, setExpression, setHasFailed, setPipelineConfiguration, setTerminator, startSelectedParentNode
public TryCatchFeed(Expression exp, Feed out, XPathContext context)
public void open(Terminator terminator) throws XPathException
open
in interface Feed
open
in class ItemFeed
terminator
- XPathException
- if a dynamic error occurspublic SequenceReceiver getReceiver()
getReceiver
in interface Feed
getReceiver
in class ItemFeed
public void processItem(Item item) throws XPathException
processItem
in interface Feed
processItem
in class ItemFeed
item
- the item to be suppliedXPathException
- May be raised if a dynamic error occurspublic void close() throws XPathException
close
in interface Feed
close
in class ItemFeed
XPathException
- if a dynamic error occurspublic void dynamicError(XPathException err) throws XPathException
ItemFeed
dynamicError
in class ItemFeed
err
- the exception representing the dynamic errorXPathException
- if there is no try/catch expression wanting to catch this errorCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.