org.opensaml.xml.parse
Class LoggingErrorHandler

java.lang.Object
  extended by org.opensaml.xml.parse.LoggingErrorHandler
All Implemented Interfaces:
ErrorHandler

public class LoggingErrorHandler
extends Object
implements ErrorHandler

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


Constructor Summary
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

LoggingErrorHandler

public 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-2011 Internet2. All Rights Reserved.