Package org.openscience.cdk.io.cml
Class CMLErrorHandler
java.lang.Object
org.openscience.cdk.io.cml.CMLErrorHandler
- All Implemented Interfaces:
ErrorHandler
CDK's SAX2 ErrorHandler for giving feedback on XML errors in the CML document.
Output is redirected to org.openscience.cdk.tools.LoggingTool.
- Author:
- Egon Willighagen <egonw@sci.kun.nl>
- Source code:
- main
- Belongs to CDK module:
- io
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor a SAX2 ErrorHandler that uses the cdk.tools.LoggingTool class to output errors and warnings to. -
Method Summary
Modifier and TypeMethodDescriptionvoid
error
(SAXParseException exception) Outputs a SAXParseException error to the logger.void
fatalError
(SAXParseException exception) Outputs as fatal SAXParseException error to the logger.void
warning
(SAXParseException exception) Outputs a SAXParseException warning to the logger.
-
Field Details
-
reportErrors
public final boolean reportErrors- See Also:
-
abortOnErrors
public final boolean abortOnErrors- See Also:
-
-
Constructor Details
-
CMLErrorHandler
public CMLErrorHandler()Constructor a SAX2 ErrorHandler that uses the cdk.tools.LoggingTool class to output errors and warnings to.
-
-
Method Details
-
error
Outputs a SAXParseException error to the logger.- Specified by:
error
in interfaceErrorHandler
- Parameters:
exception
- Exception to output- Throws:
SAXException
-
fatalError
Outputs as fatal SAXParseException error to the logger.- Specified by:
fatalError
in interfaceErrorHandler
- Parameters:
exception
- Exception to output- Throws:
SAXException
-
warning
Outputs a SAXParseException warning to the logger.- Specified by:
warning
in interfaceErrorHandler
- Parameters:
exception
- Exception to output- Throws:
SAXException
-