Package org.codehaus.cargo.util
Class ElementNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.codehaus.cargo.util.ElementNotFoundException
-
- All Implemented Interfaces:
Serializable
public class ElementNotFoundException extends RuntimeException
Exception raised when an XPath search returns no results.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementNotFoundException(String xpath, Element searched)
Constructor that provides a default message based on the XPath and element search.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-