Class UnexpectedElementException

All Implemented Interfaces:
Serializable

public class UnexpectedElementException extends InvalidXmlException
Indicates that an unexpected element occurred in the xml.
See Also:
  • Constructor Details

    • UnexpectedElementException

      public UnexpectedElementException(String expectedElement, String actualElement)
      Constructs an instance.
      Parameters:
      expectedElement - names the element expected not null
      actualElement - names the element that occured not null
  • Method Details

    • getExpectedElement

      public String getExpectedElement()
      Gets the name of the element that was expected.
      Returns:
      not null
    • getActualElement

      public String getActualElement()
      Gets the name of the element that occured.
      Returns:
      not null