Package net.ontopia.xml
Class OntopiaErrorHandler
java.lang.Object
net.ontopia.xml.OntopiaErrorHandler
- All Implemented Interfaces:
ErrorHandler
OntopiaErrorHandler implements the SAX
ErrorHandler interface and defines callback
behavior for the SAX callbacks associated with an XML
document's errors.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(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.voidfatalError(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.voidwarning(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.
-
Constructor Details
-
OntopiaErrorHandler
public OntopiaErrorHandler()
-
-
Method Details
-
warning
This will report a warning that has occurred; this indicates that while no XML rules were broken, something appears to be incorrect or missing.- Specified by:
warningin interfaceErrorHandler- Parameters:
exception-SAXParseExceptionthat occurred.- Throws:
SAXException
-
error
This will report an error that has occurred; this indicates that a rule was broken, typically in validation, but that parsing can reasonably continue.- Specified by:
errorin interfaceErrorHandler- Parameters:
exception-SAXParseExceptionthat occurred.- Throws:
SAXException
-
fatalError
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.- Specified by:
fatalErrorin interfaceErrorHandler- Parameters:
exception-SAXParseExceptionthat occurred.- Throws:
SAXException
-