public class DefaultXmlLoggerErrorHandler extends Object implements XmlGathererErrorHandler
XmlGathererErrorHandler which collects all errors, and on a fatal exception will propagate an
exception.
If logging is enabled, it will also log all warnings, errors and fatal when encountered.
Instances of this class are not reusable among several readings of
MuleDocumentLoader#loadDocument(Supplier, InputSource, EntityResolver, ErrorHandler, int, boolean) as it holds state of
the exceptions that were gathered.| Constructor and Description |
|---|
DefaultXmlLoggerErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
List<SAXParseException> |
getErrors() |
void |
warning(SAXParseException e) |
public void warning(SAXParseException e) throws SAXException
warning in interface ErrorHandlerSAXExceptionpublic void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlerSAXExceptionpublic void error(SAXParseException e) throws SAXException
error in interface ErrorHandlerSAXExceptionpublic List<SAXParseException> getErrors()
getErrors in interface XmlGathererErrorHandlerSAXParseException exceptions gathered from
ErrorHandler.error(SAXParseException).
An empty list means there were no error while parsing the file. Non null.Copyright © 2022 MuleSoft, Inc.. All rights reserved.