Package org.htmlunit
Class ElementNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.htmlunit.ElementNotFoundException
-
- All Implemented Interfaces:
java.io.Serializable
public class ElementNotFoundException extends java.lang.RuntimeExceptionAn exception that is thrown when a specified XML element cannot be found in the DOM model.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElementNotFoundException(java.lang.String elementName, java.lang.String attributeName, java.lang.String attributeValue)Creates an instance from the variables that were used to search for the XML element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttributeName()Returns the name of the attribute.java.lang.StringgetAttributeValue()Returns the value of the attribute.java.lang.StringgetElementName()Returns the name of the element.
-
-
-
Constructor Detail
-
ElementNotFoundException
public ElementNotFoundException(java.lang.String elementName, java.lang.String attributeName, java.lang.String attributeValue)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 Detail
-
getElementName
public java.lang.String getElementName()
Returns the name of the element.- Returns:
- the name of the element
-
getAttributeName
public java.lang.String getAttributeName()
Returns the name of the attribute.- Returns:
- the name of the attribute
-
getAttributeValue
public java.lang.String getAttributeValue()
Returns the value of the attribute.- Returns:
- the value of the attribute
-
-