Class GrokErrorHandler

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

    @ThreadSafe
    public class GrokErrorHandler
    extends java.lang.Object
    implements org.xml.sax.ErrorHandler
    An XML parsing error handler.
    Author:
    Jeremy Long
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void error​(org.xml.sax.SAXParseException ex)
      Handles errors.
      void fatalError​(org.xml.sax.SAXParseException ex)
      Handles fatal exceptions.
      void warning​(org.xml.sax.SAXParseException ex)
      Logs warnings.
      • Methods inherited from class java.lang.Object

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

      • GrokErrorHandler

        public GrokErrorHandler()
    • Method Detail

      • warning

        public void warning​(org.xml.sax.SAXParseException ex)
                     throws org.xml.sax.SAXException
        Logs warnings.
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
        Parameters:
        ex - the warning to log
        Throws:
        org.xml.sax.SAXException - is never thrown
      • error

        public void error​(org.xml.sax.SAXParseException ex)
                   throws org.xml.sax.SAXException
        Handles errors.
        Specified by:
        error in interface org.xml.sax.ErrorHandler
        Parameters:
        ex - the error to handle
        Throws:
        org.xml.sax.SAXException - is always thrown
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException ex)
                        throws org.xml.sax.SAXException
        Handles fatal exceptions.
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler
        Parameters:
        ex - a fatal exception
        Throws:
        org.xml.sax.SAXException - is always thrown