Package io.goobi.viewer.model.xml
Class ReportErrorsErrorHandler
java.lang.Object
io.goobi.viewer.model.xml.ReportErrorsErrorHandler
- All Implemented Interfaces:
ErrorHandler
SAX
ErrorHandler implementation that collects all warnings, errors, and fatal errors
into a list of XMLError objects instead of throwing exceptions immediately.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(SAXParseException exception) voidfatalError(SAXParseException exception) voidvoidwarning(SAXParseException exception)
-
Constructor Details
-
ReportErrorsErrorHandler
public ReportErrorsErrorHandler()
-
-
Method Details
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
getErrors
-
setErrors
-