Class DynamicError

  • All Implemented Interfaces:
    java.io.Serializable

    public class DynamicError
    extends XPathException
    Deprecated.
    since 9.0 - use the superclass XPathException instead
    Subclass of XPathException used for dynamic errors
    See Also:
    Serialized Form
    • Constructor Detail

      • DynamicError

        public DynamicError​(java.lang.String message)
        Deprecated.
      • DynamicError

        public DynamicError​(java.lang.Throwable err)
        Deprecated.
      • DynamicError

        public DynamicError​(java.lang.String message,
                            java.lang.Throwable err)
        Deprecated.
      • DynamicError

        public DynamicError​(java.lang.String message,
                            javax.xml.transform.SourceLocator loc)
        Deprecated.
      • DynamicError

        public DynamicError​(java.lang.String message,
                            javax.xml.transform.SourceLocator loc,
                            java.lang.Throwable err)
        Deprecated.
      • DynamicError

        public DynamicError​(java.lang.String message,
                            java.lang.String errorCode)
        Deprecated.
      • DynamicError

        public DynamicError​(java.lang.String message,
                            java.lang.String errorCode,
                            XPathContext context)
        Deprecated.
    • Method Detail

      • setXPathContext

        public void setXPathContext​(XPathContext context)
        Deprecated.
        Description copied from class: XPathException
        Set dynamic context information in the exception object
        Overrides:
        setXPathContext in class XPathException
        Parameters:
        context - the dynamic context at the time the exception occurred
      • getXPathContext

        public XPathContext getXPathContext()
        Deprecated.
        Description copied from class: XPathException
        Get the dynamic context at the time the exception occurred
        Overrides:
        getXPathContext in class XPathException
        Returns:
        the dynamic context if known; otherwise null
      • makeDynamicError

        public static DynamicError makeDynamicError​(javax.xml.transform.TransformerException err)
        Deprecated.
      • maybeSetLocation

        public void maybeSetLocation​(javax.xml.transform.SourceLocator locator,
                                     XPathContext context)
        Deprecated.
        Set the location and/or context of a message, only if they are not already set
        Parameters:
        locator - the current location (or null)
        context - the current context (or null)