Class OntopiaErrorHandler

java.lang.Object
net.ontopia.xml.OntopiaErrorHandler
All Implemented Interfaces:
ErrorHandler

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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
    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
    This will report a warning that has occurred; this indicates that while no XML rules were broken, something appears to be incorrect or missing.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OntopiaErrorHandler

      public OntopiaErrorHandler()
  • Method Details

    • warning

      public void warning(SAXParseException exception) throws SAXException
      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:
      warning in interface ErrorHandler
      Parameters:
      exception - SAXParseException that occurred.
      Throws:
      SAXException
    • error

      public void error(SAXParseException exception) throws SAXException
      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:
      error in interface ErrorHandler
      Parameters:
      exception - SAXParseException that occurred.
      Throws:
      SAXException
    • fatalError

      public void fatalError(SAXParseException exception) throws SAXException
      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:
      fatalError in interface ErrorHandler
      Parameters:
      exception - SAXParseException that occurred.
      Throws:
      SAXException