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>
-
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 TypeMethodDescriptionvoiderror(SAXParseException exception) Outputs a SAXParseException error to the logger.voidfatalError(SAXParseException exception) Outputs as fatal SAXParseException error to the logger.voidwarning(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:
errorin interfaceErrorHandler- Parameters:
exception- Exception to output- Throws:
SAXException
-
fatalError
Outputs as fatal SAXParseException error to the logger.- Specified by:
fatalErrorin interfaceErrorHandler- Parameters:
exception- Exception to output- Throws:
SAXException
-
warning
Outputs a SAXParseException warning to the logger.- Specified by:
warningin interfaceErrorHandler- Parameters:
exception- Exception to output- Throws:
SAXException
-