Interface ErrorListener

All Superinterfaces:
ErrorHandler, com.sun.xml.bind.api.ErrorListener
All Known Implementing Classes:
ConsoleErrorReporter, ConsoleErrorReporter, ErrorReceiver, ErrorReceiver, ErrorReceiverFilter, ErrorReceiverFilter, SchemaCompilerImpl, WsimportListener, WsimportTool.Listener, WsimportTool.Receiver, XJCListener

public interface ErrorListener extends com.sun.xml.bind.api.ErrorListener
Implemented by the driver of the compiler engine to handle errors found during the compiliation.

This class implements ErrorHandler so it can be passed to anywhere where ErrorHandler is expected.

However, to make the error handling easy (and make it work with visitor patterns nicely), this interface is not allowed to abort the processing. It merely receives errors.

Author:
Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
  • Method Details

    • error

      void error(SAXParseException exception)
      Specified by:
      error in interface ErrorHandler
      Specified by:
      error in interface com.sun.xml.bind.api.ErrorListener
    • fatalError

      void fatalError(SAXParseException exception)
      Specified by:
      fatalError in interface ErrorHandler
      Specified by:
      fatalError in interface com.sun.xml.bind.api.ErrorListener
    • warning

      void warning(SAXParseException exception)
      Specified by:
      warning in interface ErrorHandler
      Specified by:
      warning in interface com.sun.xml.bind.api.ErrorListener
    • info

      void info(SAXParseException exception)
      Used to report possibly verbose information that can be safely ignored.
      Specified by:
      info in interface com.sun.xml.bind.api.ErrorListener