Class ErrorViewCollectorErrorHandler

  • All Implemented Interfaces:
    org.xml.sax.ErrorHandler

    public class ErrorViewCollectorErrorHandler
    extends java.lang.Object
    implements org.xml.sax.ErrorHandler
    An ErrorHandler that adds all reported problems to an ErrorViewCollector instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(org.xml.sax.SAXParseException exception)  
      void fatalError​(org.xml.sax.SAXParseException exception)  
      void warning​(org.xml.sax.SAXParseException exception)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ErrorViewCollectorErrorHandler

        public ErrorViewCollectorErrorHandler​(@NotNull
                                              @NotNull ErrorViewCollector errorViewCollector,
                                              @NotNull
                                              @NotNull ErrorViewCategory errorViewCategory)
        Creates a new instance.
        Parameters:
        errorViewCollector - the error view collector instance for adding messages
        errorViewCategory - the error view category to use when adding messages to errorViewCollector
    • Method Detail

      • warning

        public void warning​(org.xml.sax.SAXParseException exception)
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
      • error

        public void error​(org.xml.sax.SAXParseException exception)
        Specified by:
        error in interface org.xml.sax.ErrorHandler
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException exception)
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler