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
ConstructorDescriptionUnexpectedElementException
(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 java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnexpectedElementException
Constructs an instance.- Parameters:
expectedElement
- names the element expected not nullactualElement
- names the element that occured not null
-
-
Method Details
-
getExpectedElement
Gets the name of the element that was expected.- Returns:
- not null
-
getActualElement
Gets the name of the element that occured.- Returns:
- not null
-