Class ElementNotFoundException

    • Constructor Detail

      • ElementNotFoundException

        public ElementNotFoundException​(String xpath,
                                        Element searched)
        Constructor that provides a default message based on the XPath and element search.
        Parameters:
        xpath - query that failed
        searched - context under which the query failed to match
    • Method Detail

      • getSearched

        public Element getSearched()
        Getter that returns the XML Element which didn't match on the given XPath.
        Returns:
        context of the XPath query.
      • getXpath

        public String getXpath()
        Getter for the XPath that didn't match.
        Returns:
        the XPath query that failed