Class SilentDraconianErrorHandler

java.lang.Object
nu.validator.xml.SilentDraconianErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class SilentDraconianErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler
Throws the exception on errors and fatal errors. Ignores warnings. Does not print anything.
Version:
$Id$
Author:
hsivonen
  • Constructor Summary

    Constructors 
    Constructor Description
    SilentDraconianErrorHandler()  
  • Method Summary

    Modifier and Type Method Description
    void error​(org.xml.sax.SAXParseException arg0)  
    void fatalError​(org.xml.sax.SAXParseException arg0)  
    void warning​(org.xml.sax.SAXParseException arg0)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • warning

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

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

      public void fatalError​(org.xml.sax.SAXParseException arg0) throws org.xml.sax.SAXException
      Specified by:
      fatalError in interface org.xml.sax.ErrorHandler
      Throws:
      org.xml.sax.SAXException
      See Also:
      ErrorHandler.fatalError(org.xml.sax.SAXParseException)