Package io.github.microcks.util
Class XmlErrorHandler
java.lang.Object
io.github.microcks.util.XmlErrorHandler
- All Implemented Interfaces:
ErrorHandler
A simple SAX error handler that accumulates exception within an exceptions list.
- Author:
- laurent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(SAXParseException exception) void
fatalError
(SAXParseException exception) Get attached Xml validation errors.void
warning
(SAXParseException exception)
-
Constructor Details
-
XmlErrorHandler
public XmlErrorHandler()
-
-
Method Details
-
getExceptions
Get attached Xml validation errors.- Returns:
- A list of SAX parsing exception while line numbers and explanation of validation failures.
-
warning
- Specified by:
warning
in interfaceErrorHandler
-
error
- Specified by:
error
in interfaceErrorHandler
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
-