Class DefaultXmlLoggerErrorHandler

java.lang.Object
org.mule.runtime.dsl.internal.xml.parser.DefaultXmlLoggerErrorHandler
All Implemented Interfaces:
XmlGathererErrorHandler, ErrorHandler

public class DefaultXmlLoggerErrorHandler extends Object implements XmlGathererErrorHandler
Default implementation of 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.

Since:
4.0