Module org.mule.runtime.dsl.api
Interface XmlGathererErrorHandler
- All Superinterfaces:
ErrorHandler
- All Known Implementing Classes:
DefaultXmlLoggerErrorHandler
Represents a specific type of
ErrorHandler which gathers as many errors as possible to be displayed later for either
logging purposes or to propagate an exception with the full list of errors.
Any implementation must be careful on how to treat the ErrorHandler.fatalError(SAXParseException) method, as if the
exception is not propagated immediately, breaking the current file parsing, the state of the DOM is in most of the cases
unusable.- Since:
- 4.0
-
Method Summary
Methods inherited from interface org.xml.sax.ErrorHandler
error, fatalError, warning
-
Method Details
-
getErrors
List<SAXParseException> getErrors()- Returns:
- a collection with all the
SAXParseExceptionexceptions gathered fromErrorHandler.error(SAXParseException). An empty list means there were no error while parsing the file. Non null.
-