fi.iki.hsivonen.xml
Class SilentDraconianErrorHandler

java.lang.Object
  extended by fi.iki.hsivonen.xml.SilentDraconianErrorHandler
All Implemented Interfaces:
ErrorHandler

public class SilentDraconianErrorHandler
extends Object
implements ErrorHandler

Throws the exception on errors and fatal errors. Ignores warnings. Does not print anything.

Version:
$Id: SilentDraconianErrorHandler.java,v 1.1 2004/12/28 21:09:06 hsivonen Exp $
Author:
hsivonen

Constructor Summary
SilentDraconianErrorHandler()
           
 
Method Summary
 void error(SAXParseException arg0)
           
 void fatalError(SAXParseException arg0)
           
 void warning(SAXParseException arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SilentDraconianErrorHandler

public SilentDraconianErrorHandler()
Method Detail

warning

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

error

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

fatalError

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