Package org.opencms.xml
Class CmsXmlErrorHandler
java.lang.Object
org.opencms.xml.CmsXmlErrorHandler
- All Implemented Interfaces:
ErrorHandler
Error hander for writing errors found during XML validation to the OpenCms log.
Exceptions caused by warnings are suppressed (but written to the log if level is set to WARN).
- Since:
- 6.0.0
-
Constructor Summary
ConstructorDescriptionCreates an OpenCms XML error handler.CmsXmlErrorHandler
(String resourceName) Creates an OpenCms XML error handler with a resource name for error logging. -
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(SAXParseException exception) void
fatalError
(SAXParseException exception) void
warning
(SAXParseException exception)
-
Constructor Details
-
CmsXmlErrorHandler
public CmsXmlErrorHandler()Creates an OpenCms XML error handler. -
CmsXmlErrorHandler
Creates an OpenCms XML error handler with a resource name for error logging.- Parameters:
resourceName
- the name (path) of the XML resource that is handled, for logging
-
-
Method Details
-
error
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
- See Also:
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
- See Also:
-
warning
- Specified by:
warning
in interfaceErrorHandler
- See Also:
-