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.


Field Summary
private  Logger log
          Error logger.
 
Constructor Summary
LoggingErrorHandler(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
 

Field Detail

log

private Logger log
Error logger.

Constructor Detail

LoggingErrorHandler

public LoggingErrorHandler(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 © 1999-2013. All Rights Reserved.