edu.internet2.middleware.shibboleth.common.config
Class SpringDocumentLoader.LoggingErrorHandler

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.config.SpringDocumentLoader.LoggingErrorHandler
All Implemented Interfaces:
ErrorHandler
Enclosing class:
SpringDocumentLoader

public class SpringDocumentLoader.LoggingErrorHandler
extends Object
implements ErrorHandler

A SAX error handler that logs errors a Logger before rethrowing them.


Constructor Summary
SpringDocumentLoader.LoggingErrorHandler(org.slf4j.Logger logger)
          Constructor.
 
Method Summary
 void error(SAXParseException exception)
          
 void fatalError(SAXParseException exception)
          
 void warning(SAXParseException exception)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringDocumentLoader.LoggingErrorHandler

public SpringDocumentLoader.LoggingErrorHandler(org.slf4j.Logger logger)
Constructor.

Parameters:
logger - logger errors will be written to
Method Detail

error

public void error(SAXParseException exception)
           throws SAXException

Specified by:
error in interface ErrorHandler
Throws:
SAXException

fatalError

public void fatalError(SAXParseException exception)
                throws SAXException

Specified by:
fatalError in interface ErrorHandler
Throws:
SAXException

warning

public void warning(SAXParseException exception)
             throws SAXException

Specified by:
warning in interface ErrorHandler
Throws:
SAXException


Copyright © 2006-2009 Internet2. All Rights Reserved.