Class ExceptionThrowingErrorHandler

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

    public class ExceptionThrowingErrorHandler
    extends java.lang.Object
    implements org.xml.sax.ErrorHandler
    Simple implementation of ErrorHandler capable of directly rethrowing the exception
    Author:
    Ikasan Development Team
    • Constructor Summary

      Constructors 
      Constructor Description
      ExceptionThrowingErrorHandler()
      Default constructor
      ExceptionThrowingErrorHandler​(boolean throwExceptionOnError, boolean throwExceptionOnFatalError, boolean throwExceptionOnWarning)
      Constructor overriding default value for boolean flags
    • 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

      • ExceptionThrowingErrorHandler

        public ExceptionThrowingErrorHandler()
        Default constructor
      • ExceptionThrowingErrorHandler

        public ExceptionThrowingErrorHandler​(boolean throwExceptionOnError,
                                             boolean throwExceptionOnFatalError,
                                             boolean throwExceptionOnWarning)
        Constructor overriding default value for boolean flags
        Parameters:
        throwExceptionOnError - Boolean flag for 'error' category of errors
        throwExceptionOnFatalError - Boolean flag for 'fatalError' category of errors
        throwExceptionOnWarning - Boolean flag for 'warning' category of errors
    • Method Detail

      • error

        public void error​(org.xml.sax.SAXParseException exception)
                   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 exception)
                        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 exception)
                     throws org.xml.sax.SAXException
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
        Throws:
        org.xml.sax.SAXException