com.sun.xml.bind.api
Interface ErrorListener

All Superinterfaces:
org.xml.sax.ErrorHandler
All Known Subinterfaces:
ErrorListener
All Known Implementing Classes:
ConsoleErrorReporter, ErrorReceiver, ErrorReceiverFilter, SchemaCompilerImpl, XJCListener

public interface ErrorListener
extends org.xml.sax.ErrorHandler

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.

Since:
2.1 EA2

Method Summary
 void error(org.xml.sax.SAXParseException exception)
           
 void fatalError(org.xml.sax.SAXParseException exception)
           
 void info(org.xml.sax.SAXParseException exception)
          Used to report possibly verbose information that can be safely ignored.
 void warning(org.xml.sax.SAXParseException exception)
           
 

Method Detail

error

void error(org.xml.sax.SAXParseException exception)
Specified by:
error in interface org.xml.sax.ErrorHandler

fatalError

void fatalError(org.xml.sax.SAXParseException exception)
Specified by:
fatalError in interface org.xml.sax.ErrorHandler

warning

void warning(org.xml.sax.SAXParseException exception)
Specified by:
warning in interface org.xml.sax.ErrorHandler

info

void info(org.xml.sax.SAXParseException exception)
Used to report possibly verbose information that can be safely ignored.