public class LoggingErrorHandler
extends java.lang.Object
implements org.xml.sax.ErrorHandler
ErrorHandler implementation that dumps all of the error
messages onto a logging channel at the debug level.| Constructor and Description |
|---|
LoggingErrorHandler()
Construct a new instance that dumps messages onto the default logging
channel defined by this class.
|
LoggingErrorHandler(org.apache.commons.logging.Log log)
Construct a new instance that dumps messages onto a specific logging
channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(org.xml.sax.SAXParseException exception) |
void |
fatalError(org.xml.sax.SAXParseException exception) |
void |
warning(org.xml.sax.SAXParseException exception) |
public LoggingErrorHandler()
public LoggingErrorHandler(org.apache.commons.logging.Log log)
log - the Log on which to dump messages.public void warning(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
warning in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionErrorHandler.warning(org.xml.sax.SAXParseException)public void error(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
error in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionErrorHandler.error(org.xml.sax.SAXParseException)public void fatalError(org.xml.sax.SAXParseException exception)
throws org.xml.sax.SAXException
fatalError in interface org.xml.sax.ErrorHandlerorg.xml.sax.SAXExceptionErrorHandler.fatalError(org.xml.sax.SAXParseException)