public class OntopiaErrorHandler extends Object implements ErrorHandler
OntopiaErrorHandler implements the SAX
ErrorHandler interface and defines callback
behavior for the SAX callbacks associated with an XML
document's errors.| Constructor and Description |
|---|
OntopiaErrorHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException exception)
This will report an error that has occurred; this indicates
that a rule was broken, typically in validation, but that
parsing can reasonably continue.
|
void |
fatalError(SAXParseException exception)
This will report a fatal error that has occurred; this indicates
that a rule has been broken that makes continued parsing either
impossible or an almost certain waste of time.
|
void |
warning(SAXParseException exception)
This will report a warning that has occurred; this indicates
that while no XML rules were broken, something appears
to be incorrect or missing.
|
public void warning(SAXParseException exception) throws SAXException
warning in interface ErrorHandlerexception - SAXParseException that occurred.SAXException - when things go wrongSAXExceptionpublic void error(SAXParseException exception) throws SAXException
error in interface ErrorHandlerexception - SAXParseException that occurred.SAXException - when things go wrongSAXExceptionpublic void fatalError(SAXParseException exception) throws SAXException
fatalError in interface ErrorHandlerexception - SAXParseException that occurred.SAXException - when things go wrongSAXException