public class LoggingXmlErrorHandler
extends java.lang.Object
implements org.apache.xerces.xni.parser.XMLErrorHandler
LoggingXmlErrorHandler that outputs messages to a
log.| Constructor and Description |
|---|
LoggingXmlErrorHandler(org.slf4j.Logger log)
Create a new instance that will output to the specified
Logger
instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
error(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException ex) |
void |
fatalError(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException ex) |
org.apache.xerces.xni.parser.XMLParseException |
getLastError() |
void |
warning(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException ex) |
public LoggingXmlErrorHandler(org.slf4j.Logger log)
Logger
instance.log - the target log, which much be non-nullpublic org.apache.xerces.xni.parser.XMLParseException getLastError()
public void warning(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException ex)
throws org.apache.xerces.xni.XNIException
warning in interface org.apache.xerces.xni.parser.XMLErrorHandlerorg.apache.xerces.xni.XNIExceptionpublic void error(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException ex)
throws org.apache.xerces.xni.XNIException
error in interface org.apache.xerces.xni.parser.XMLErrorHandlerorg.apache.xerces.xni.XNIExceptionpublic void fatalError(java.lang.String domain,
java.lang.String key,
org.apache.xerces.xni.parser.XMLParseException ex)
throws org.apache.xerces.xni.XNIException
fatalError in interface org.apache.xerces.xni.parser.XMLErrorHandlerorg.apache.xerces.xni.XNIException