Class FatalParserException

  • All Implemented Interfaces:
    com.inet.error.HasErrorCode, java.io.Serializable

    public class FatalParserException
    extends ReportException
    The FatalParserException is thrown while parsing only if a fatal and unrecoverable error occurs which causes the report to not be able to be parsed. The throwable is wrapped in this exception and can be accessed with the methods ReportException.setCause(Throwable) and Throwable.getCause().
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FatalParserException​(java.lang.String tag, org.xml.sax.Attributes atts, java.lang.String msg, int messageId)
      Creates a fatal parser exception, which means that the parsing of a report has been fatally terminated because the report was unreadable for a certain reason.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.xml.sax.Attributes getAtts()
      Returns the SAX attributes of the tag currently being parsed at the time of the exception.
      java.lang.String getTag()
      Returns the XML Tag currently being parsed at the time of the exception.
      • 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
    • Constructor Detail

      • FatalParserException

        public FatalParserException​(java.lang.String tag,
                                    org.xml.sax.Attributes atts,
                                    java.lang.String msg,
                                    int messageId)
        Creates a fatal parser exception, which means that the parsing of a report has been fatally terminated because the report was unreadable for a certain reason.
        Parameters:
        tag - XML Tag currently being parsed at the time of the exception. Null if not applicable.
        atts - SAX attributes of the tag currently being parsed at the time of the exception. Null if not applicable.
        msg - Message of the parser exception
        messageId - ID of the message
        Since:
        8.0
    • Method Detail

      • getTag

        public java.lang.String getTag()
        Returns the XML Tag currently being parsed at the time of the exception. Null if not applicable.
        Returns:
        XML Tag currently being parsed at the time of the exception. Null if not applicable.
        Since:
        8.0
      • getAtts

        public org.xml.sax.Attributes getAtts()
        Returns the SAX attributes of the tag currently being parsed at the time of the exception. Null if not applicable.
        Returns:
        SAX attributes of the tag currently being parsed at the time of the exception. Null if not applicable.
        Since:
        8.0