Class TryCatchAdjunct.TryCatchFeed

  • All Implemented Interfaces:
    javax.xml.transform.Result, Receiver
    Enclosing class:
    TryCatchAdjunct

    public static class TryCatchAdjunct.TryCatchFeed
    extends ItemFeed
    • Method Detail

      • open

        public void open​(Terminator terminator)
                  throws XPathException
        Start evaluating the expression. The default implementation does nothing.
        Overrides:
        open in class ItemFeed
        Parameters:
        terminator - used to achieve early exit
        Throws:
        XPathException - if a dynamic error occurs
      • append

        public void append​(Item item)
                    throws XPathException
        Supply one item towards the streamed input of the expression
        Specified by:
        append in interface Receiver
        Specified by:
        append in class ItemFeed
        Parameters:
        item - the item to be supplied
        Throws:
        XPathException - if the operation fails
      • dynamicError

        public void dynamicError​(XPathException err)
                          throws XPathException
        Description copied from class: ItemFeed
        Report a dynamic error. This requires searching up the "feed" pipeline to see if there is a try/catch expression interested in being notified of this error; if there is none, the error is thrown as an exception
        Overrides:
        dynamicError in class ItemFeed
        Parameters:
        err - the exception representing the dynamic error
        Throws:
        XPathException - if there is no try/catch expression wanting to catch this error