org.kuali.rice.ken.util
Class SimpleErrorHandler

java.lang.Object
  extended by org.kuali.rice.ken.util.SimpleErrorHandler
All Implemented Interfaces:
ErrorHandler

public class SimpleErrorHandler
extends Object
implements ErrorHandler

A simple SAX ErrorHandler implementation that logs to a global logger for this class, or the one provided.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
SimpleErrorHandler()
          Constructs a SimpleErrorHandler.java.
SimpleErrorHandler(org.apache.log4j.Logger log)
          Constructs a SimpleErrorHandler.java.
 
Method Summary
 void error(SAXParseException se)
           
 void fatalError(SAXParseException se)
           
 void warning(SAXParseException se)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleErrorHandler

public SimpleErrorHandler()
Constructs a SimpleErrorHandler.java.


SimpleErrorHandler

public SimpleErrorHandler(org.apache.log4j.Logger log)
Constructs a SimpleErrorHandler.java.

Parameters:
log -
Method Detail

warning

public void warning(SAXParseException se)
Specified by:
warning in interface ErrorHandler
See Also:
ErrorHandler.warning(org.xml.sax.SAXParseException)

error

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

fatalError

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


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.