Class XPathException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DynamicError, StaticError, ValidationException

public abstract class XPathException extends TransformerException
XPathException is used to indicate an error in an XPath expression. It will generally be either a StaticError or a DynamicError; ValidationExceptions (arising from schema validation) form a third category
See Also:
  • Field Details

    • errorCodeNamespace

      String errorCodeNamespace
    • errorCode

      String errorCode
    • errorObject

      Value errorObject
  • Constructor Details

  • Method Details

    • makeStatic

      public StaticError makeStatic()
      Force an exception to a static error
    • setIsTypeError

      public void setIsTypeError(boolean is)
    • isTypeError

      public boolean isTypeError()
    • setErrorCode

      public void setErrorCode(String code)
      Set the error code. The error code is a QName; this method sets the local part of the name, and if no other namespace has been set, it sets the namespace of the error code to the standard system namespace NamespaceConstant.ERR
      Parameters:
      code - The local part of the name of the error code
    • setErrorCode

      public void setErrorCode(String namespace, String code)
      Set the error code. The error code is a QName; this method sets both parts of the name.
      Parameters:
      namespace - The namespace URI part of the name of the error code
      code - The local part of the name of the error code
    • getErrorCodeLocalPart

      public String getErrorCodeLocalPart()
      Get the local part of the name of the error code
      Returns:
      the local part of the name of the error code
    • getErrorCodeNamespace

      public String getErrorCodeNamespace()
      Get the namespace URI part of the name of the error code
      Returns:
      the namespace URI part of the name of the error code
    • setErrorObject

      public void setErrorObject(Value value)
    • getErrorObject

      public Value getErrorObject()
    • setHasBeenReported

      public void setHasBeenReported()
    • hasBeenReported

      public boolean hasBeenReported()