Class Error

All Implemented Interfaces:
Callable, Function, GroundedValue, Item, Sequence

public class Error extends SystemFunction implements Callable
Implement XPath function fn:error()
  • Constructor Details

    • Error

      public Error()
  • Method Details

    • getSpecialProperties

      public int getSpecialProperties(Expression[] arguments)
      Description copied from class: SystemFunction
      Determine the special properties of this function. The general rule is that a system function call is non-creative unless more details are defined in a subclass.
      Overrides:
      getSpecialProperties in class SystemFunction
      Parameters:
      arguments - the actual arguments supplied in a call to the function
    • isVacuousExpression

      public boolean isVacuousExpression()
      Determine whether this is a vacuous expression as defined in the XQuery update specification
      Returns:
      true if this expression is vacuous
    • error

      public Item error(XPathContext context, QNameValue errorCode, StringValue desc, SequenceIterator errObject) throws XPathException
      Throws:
      XPathException
    • call

      public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
      Description copied from interface: Function
      Invoke the function
      Specified by:
      call in interface Callable
      Specified by:
      call in interface Function
      Parameters:
      context - the XPath dynamic evaluation context
      arguments - the actual arguments to be supplied
      Returns:
      the result of invoking the function
      Throws:
      XPathException - if a dynamic error occurs within the function