@NoImplement public interface XmlGathererErrorHandler extends ErrorHandler
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.XmlConfigurationDocumentLoader#loadDocument(Optional, String, InputStream)}
Modifier and Type | Method and Description |
---|---|
List<SAXParseException> |
getErrors() |
error, fatalError, warning
List<SAXParseException> getErrors()
SAXParseException
exceptions gathered from ErrorHandler.error(SAXParseException)
.
An empty list means there were no error while parsing the file. Non null.Copyright © 2018. All rights reserved.