| java.lang.Object com.sun.tools.xjc.ErrorReceiver
All known Subclasses: com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl, com.sun.tools.jxc.apt.ErrorReceiverImpl, com.sun.tools.xjc.util.ErrorReceiverFilter, com.sun.tools.xjc.ConsoleErrorReporter,
ErrorReceiver | abstract public class ErrorReceiver implements ErrorHandler,ErrorListener(Code) | | 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),
none of the methods on thi class throws
org.xml.sax.SAXException .
Instead, when the compilation needs to be aborted,
it throws
AbortException , which is unchecked.
This also implements the externally visible
ErrorListener so that we can reuse our internal implementation for testing and such.
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
error | final public void error(Locator loc, String msg)(Code) | | Parameters: loc - can be null if the location is unknown |
info | abstract public void info(SAXParseException exception)(Code) | | Reports verbose messages to users.
This method can be used to report additional non-essential
messages. The implementation usually discards them
unless some specific debug option is turned on.
|
pollAbort | public void pollAbort() throws AbortException(Code) | | This method will be invoked periodically to allow
AbortException to be thrown, especially when this is driven by some kind of GUI.
|
warning | final public void warning(Locator loc, String msg)(Code) | | Parameters: loc - can be null if the location is unknown |
|
|