Class XmlException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class XmlException
    extends java.lang.RuntimeException
    Generic XML exception wrapper. Can occur during validation or parsing.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @Nullable java.lang.String getKind()
      Returns the message kind.
      XmlPosition getPosition()
      Returns the position where the error occurred.
      XmlSeverity getSeverity()
      Returns the severity of the message.
      java.lang.String getSimpleMessage()
      Returns the error message, without the surrounding line context.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • simpleMessage

        private final java.lang.String simpleMessage
      • kind

        private final @Nullable java.lang.String kind
    • Method Detail

      • getSimpleMessage

        public java.lang.String getSimpleMessage()
        Returns the error message, without the surrounding line context. Throwable.getMessage() will return a fuller message.
      • getPosition

        public XmlPosition getPosition()
        Returns the position where the error occurred. This may be undefined.
      • getKind

        public @Nullable java.lang.String getKind()
        Returns the message kind.
      • getSeverity

        public XmlSeverity getSeverity()
        Returns the severity of the message.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable