Package cl.obcom.desktopfx.util
Class XmlErrorHandler
java.lang.Object
cl.obcom.desktopfx.util.XmlErrorHandler
- All Implemented Interfaces:
ErrorHandler
ErrorHandler that re-throws all exceptions it receives.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(SAXParseException exception) This corresponds to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation.void
fatalError
(SAXParseException exception) This corresponds to the definition of "fatal error" in section 1.2 of the W3C XML 1.0 Recommendation.void
warning
(SAXParseException exception) SAX parsers will use this method to report conditions that are not errors or fatal errors as defined by the XML recommendation.
-
Constructor Details
-
XmlErrorHandler
public XmlErrorHandler()
-
-
Method Details
-
warning
SAX parsers will use this method to report conditions that are not errors or fatal errors as defined by the XML recommendation. The default behaviour is to take no action.- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
-
error
This corresponds to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a validating parser would use this callback to report the violation of a validity constraint. The default behaviour is to take no action.- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
-
fatalError
This corresponds to the definition of "fatal error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a parser would use this callback to report the violation of a well-formedness constraint.- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
-