public class ElementNotFoundException extends RuntimeException
Constructor and Description |
---|
ElementNotFoundException(String xpath,
org.dom4j.Element searched)
Constructor that provides a default message based on the XPath and element search.
|
Modifier and Type | Method and Description |
---|---|
org.dom4j.Element |
getSearched()
Getter that returns the XML Element which didn't match on the given XPath.
|
String |
getXpath()
Getter for the XPath that didn't match.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ElementNotFoundException(String xpath, org.dom4j.Element searched)
xpath
- query that failedsearched
- context under which the query failed to matchpublic org.dom4j.Element getSearched()
public String getXpath()
Copyright © 2004-2013 Codehaus. All Rights Reserved.