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)

Field Summary
private  org.apache.log4j.Logger log
           
private static org.apache.log4j.Logger LOG
           
 
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
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG

log

private final org.apache.log4j.Logger log
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 © 2004-2011 The Kuali Foundation. All Rights Reserved.