Class ReportErrorHandler

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

    public class ReportErrorHandler
    extends java.lang.Object
    implements org.xml.sax.ErrorHandler
    ErrorHandler that reports all errors and warnings. SAX parse errors are also handled.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void countCheck​(org.xml.sax.SAXParseException e)  
      void error​(org.xml.sax.SAXParseException e)  
      void fatalError​(org.xml.sax.SAXParseException e)  
      protected static void printSAXParseException​(org.xml.sax.SAXParseException spe, java.lang.String prop)  
      void warning​(org.xml.sax.SAXParseException e)  
      • Methods inherited from class java.lang.Object

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

      • counter

        private int counter
      • hadError

        public boolean hadError
      • MSG_TOO_MANY_ERRORS

        public static final java.lang.String MSG_TOO_MANY_ERRORS
        See Also:
        Constant Field Values
    • Constructor Detail

      • ReportErrorHandler

        public ReportErrorHandler()
    • Method Detail

      • error

        public void error​(org.xml.sax.SAXParseException e)
                   throws org.xml.sax.SAXException
        Specified by:
        error in interface org.xml.sax.ErrorHandler
        Throws:
        org.xml.sax.SAXException
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException e)
                        throws org.xml.sax.SAXException
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler
        Throws:
        org.xml.sax.SAXException
      • warning

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

        protected static void printSAXParseException​(org.xml.sax.SAXParseException spe,
                                                     java.lang.String prop)