org.opensaml.xml.parse
Class LoggingErrorHandler
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggingErrorHandler
public LoggingErrorHandler(org.slf4j.Logger logger)
- Constructor.
- Parameters:
logger
- logger errors will be written to
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.