public class CMLErrorHandler extends Object implements ErrorHandler
Modifier and Type | Field and Description |
---|---|
boolean |
abortOnErrors |
boolean |
reportErrors |
Constructor and Description |
---|
CMLErrorHandler()
Constructor a SAX2 ErrorHandler that uses the cdk.tools.LoggingTool
class to output errors and warnings to.
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
public CMLErrorHandler()
public void error(SAXParseException exception) throws SAXException
error
in interface ErrorHandler
exception
- Exception to outputSAXException
public void fatalError(SAXParseException exception) throws SAXException
fatalError
in interface ErrorHandler
exception
- Exception to outputSAXException
public void warning(SAXParseException exception) throws SAXException
warning
in interface ErrorHandler
exception
- Exception to outputSAXException
Copyright © 2022. All rights reserved.