Class UnexpectedElementException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
org.apache.creadur.whisker.fromxml.InvalidXmlException
org.apache.creadur.whisker.fromxml.UnexpectedElementException
- All Implemented Interfaces:
Serializable
Indicates that an unexpected element occurred in the xml.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnexpectedElementException(String expectedElement, String actualElement) Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the element that occured.Gets the name of the element that was expected.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnexpectedElementException
-
-
Method Details
-
getExpectedElement
Gets the name of the element that was expected.- Returns:
- not null
-
getActualElement
-