Class XmlErrorHandler

java.lang.Object
cl.obcom.desktopfx.util.XmlErrorHandler
All Implemented Interfaces:
ErrorHandler

public class XmlErrorHandler extends Object implements ErrorHandler
ErrorHandler that re-throws all exceptions it receives.
  • Constructor Details

    • XmlErrorHandler

      public XmlErrorHandler()
  • Method Details

    • warning

      public void warning(SAXParseException exception) throws SAXException
      SAX parsers will use this method to report conditions that are not errors or fatal errors as defined by the XML recommendation. The default behaviour is to take no action.
      Specified by:
      warning in interface ErrorHandler
      Throws:
      SAXException
    • error

      public void error(SAXParseException exception) throws SAXException
      This corresponds to the definition of "error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a validating parser would use this callback to report the violation of a validity constraint. The default behaviour is to take no action.
      Specified by:
      error in interface ErrorHandler
      Throws:
      SAXException
    • fatalError

      public void fatalError(SAXParseException exception) throws SAXException
      This corresponds to the definition of "fatal error" in section 1.2 of the W3C XML 1.0 Recommendation. For example, a parser would use this callback to report the violation of a well-formedness constraint.
      Specified by:
      fatalError in interface ErrorHandler
      Throws:
      SAXException