Class TryCatchAdjunct.TryCatchFeed

All Implemented Interfaces:
Result, Receiver
Enclosing class:
TryCatchAdjunct

public static class TryCatchAdjunct.TryCatchFeed extends ItemFeed
  • Method Details Link icon

    • open Link icon

      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 Link icon

      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
    • close Link icon

      public void close() throws XPathException
      Finish evaluating the expression.
      Specified by:
      close in interface Receiver
      Overrides:
      close in class ItemFeed
      Throws:
      XPathException - if a dynamic error occurs
    • dynamicError Link icon

      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