Class JsonGeneratorXml.UnrecognisedElementException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
uk.blankaspect.common.jsonxml.JsonGeneratorXml.UnrecognisedElementException
All Implemented Interfaces:
Serializable
Enclosing class:
JsonGeneratorXml

public static class JsonGeneratorXml.UnrecognisedElementException extends RuntimeException
This class implements an unchecked exception that is thrown in response to an unrecognised XML element.
See Also:
  • Constructor Details

    • UnrecognisedElementException

      public UnrecognisedElementException(Element element)
      Creates a new instance of an exception that is associated with the specified unrecognised XML element.
      Parameters:
      element - the XML element that will be associated with this exception.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • getElement

      public Element getElement()
      Returns the element that is associated with this exception.
      Returns:
      the element that is associated with this exception.