public static class InputSourceHandle.DraconianErrorHandler extends Object implements ErrorHandler
DraconianErrorHandler treats SAX parse errors as exceptions but ignores warnings (based on the JavaDoc for the javax.xml.validation package). To minimize creation of partial documents while writing an input source to the database, set the error handler on the InputSourceHandle to DraconianErrorHandler and set the repair policy to NONE on the XMLDocumentManager. An error on the root element can still result in an empty document.
| Constructor and Description |
|---|
DraconianErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException e)
Throws the error as a parse exception.
|
void |
fatalError(SAXParseException e)
Throws the fatal error as a parse exception.
|
void |
warning(SAXParseException e)
Ignores the warning.
|
public void fatalError(SAXParseException e) throws SAXException
Throws the fatal error as a parse exception.
fatalError in interface ErrorHandlerSAXExceptionpublic void error(SAXParseException e) throws SAXException
Throws the error as a parse exception.
error in interface ErrorHandlerSAXExceptionpublic void warning(SAXParseException e) throws SAXException
Ignores the warning.
warning in interface ErrorHandlerSAXExceptionCopyright © 2013-2017 MarkLogic Corporation.