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.slf4j.Logger 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.slf4j.Logger 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.ErrorHandler
org.xml.sax.SAXException
ErrorHandler.warning(org.xml.sax.SAXParseException)
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
ErrorHandler.error(org.xml.sax.SAXParseException)
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
ErrorHandler.fatalError(org.xml.sax.SAXParseException)