Package org.htmlunit
Class ElementNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.htmlunit.ElementNotFoundException
- All Implemented Interfaces:
Serializable
An exception that is thrown when a specified XML element cannot be found in the DOM model.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionElementNotFoundException
(String elementName, String attributeName, String attributeValue) Creates an instance from the variables that were used to search for the XML element. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the attribute.Returns the value of the attribute.Returns the name of the element.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ElementNotFoundException
Creates an instance from the variables that were used to search for the XML element.- Parameters:
elementName
- the name of the elementattributeName
- the name of the attributeattributeValue
- the value of the attribute
-
-
Method Details
-
getElementName
Returns the name of the element.- Returns:
- the name of the element
-
getAttributeName
Returns the name of the attribute.- Returns:
- the name of the attribute
-
getAttributeValue
Returns the value of the attribute.- Returns:
- the value of the attribute
-