Class JsonGeneratorXml.ElementException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
uk.blankaspect.common.jsonxml.JsonGeneratorXml.ElementException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JsonGeneratorXml.NoNameAttributeException, JsonGeneratorXml.UnrecognisedElementException
Enclosing class:
JsonGeneratorXml

public abstract static class JsonGeneratorXml.ElementException extends RuntimeException
This is the abstract base class of an unchecked exception that is associated with an XML element.
See Also:
  • Constructor Details

    • ElementException

      protected ElementException(Element element)
      Creates a new instance of an exception that is associated with the specified 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.