Class DefaultErrorHandler

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

    public class DefaultErrorHandler
    extends java.lang.Object
    implements org.xml.sax.ErrorHandler
    INTERNAL: A default implementation of ErrorHandler that simply rethrows the SAXParseExceptions. This works around an issue that can result in a NPE when setting a Schema on a parser without setting an Error Handler.
    Author:
    mmacivor
    • Method Detail

      • error

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

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

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