com.boylesoftware.cb2.util
Class CruelErrorHandler

java.lang.Object
  extended bycom.boylesoftware.cb2.util.CruelErrorHandler
All Implemented Interfaces:
org.xml.sax.ErrorHandler

public class CruelErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler

Simple error handler for XML parsers. This handler is very "cruel" -- it throws exception on any warning, error or fatalError condition.

Version:
$Id: CruelErrorHandler.java,v 1.1 2003/04/22 17:34:18 levahim Exp $
Author:
Lev Himmelfarb

Constructor Summary
CruelErrorHandler()
           
 
Method Summary
 void error(org.xml.sax.SAXParseException exception)
          Rethrows the exception.
 void fatalError(org.xml.sax.SAXParseException exception)
          Rethrows the exception.
 void warning(org.xml.sax.SAXParseException exception)
          Rethrows the exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CruelErrorHandler

public CruelErrorHandler()
Method Detail

warning

public void warning(org.xml.sax.SAXParseException exception)
             throws org.xml.sax.SAXException
Rethrows the exception.

Specified by:
warning in interface org.xml.sax.ErrorHandler
Parameters:
exception - the exception.
Throws:
org.xml.sax.SAXException - always throws this exception.

error

public void error(org.xml.sax.SAXParseException exception)
           throws org.xml.sax.SAXException
Rethrows the exception.

Specified by:
error in interface org.xml.sax.ErrorHandler
Parameters:
exception - the exception.
Throws:
org.xml.sax.SAXException - always throws this exception.

fatalError

public void fatalError(org.xml.sax.SAXParseException exception)
                throws org.xml.sax.SAXException
Rethrows the exception.

Specified by:
fatalError in interface org.xml.sax.ErrorHandler
Parameters:
exception - the exception.
Throws:
org.xml.sax.SAXException - always throws this exception.


Copyright © 2002,2003,2004 - Boyle Software, Inc.