|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.tools.xjc.ErrorReceiver
public abstract class ErrorReceiver
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 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.
| Constructor Summary | |
|---|---|
ErrorReceiver()
|
|
| Method Summary | |
|---|---|
void |
debug(java.lang.String msg)
Reports a debug message to users. |
void |
error(java.lang.Exception e)
|
void |
error(org.xml.sax.Locator loc,
java.lang.String msg)
|
void |
error(org.xml.sax.Locator loc,
java.lang.String msg,
java.lang.Exception e)
|
abstract void |
error(org.xml.sax.SAXParseException exception)
|
void |
error(java.lang.String msg,
java.lang.Exception e)
|
abstract void |
fatalError(org.xml.sax.SAXParseException exception)
|
abstract void |
info(org.xml.sax.SAXParseException exception)
Reports verbose messages to users. |
void |
pollAbort()
This method will be invoked periodically to allow AbortException
to be thrown, especially when this is driven by some kind of GUI. |
void |
warning(org.xml.sax.Locator loc,
java.lang.String msg)
|
abstract void |
warning(org.xml.sax.SAXParseException exception)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorReceiver()
| Method Detail |
|---|
public final void error(org.xml.sax.Locator loc,
java.lang.String msg)
loc - can be null if the location is unknown
public final void error(org.xml.sax.Locator loc,
java.lang.String msg,
java.lang.Exception e)
public final void error(java.lang.String msg,
java.lang.Exception e)
public void error(java.lang.Exception e)
public final void warning(org.xml.sax.Locator loc,
java.lang.String msg)
loc - can be null if the location is unknown
public abstract void error(org.xml.sax.SAXParseException exception)
throws AbortException
error in interface com.sun.xml.bind.api.ErrorListenererror in interface org.xml.sax.ErrorHandlerAbortException
public abstract void fatalError(org.xml.sax.SAXParseException exception)
throws AbortException
fatalError in interface com.sun.xml.bind.api.ErrorListenerfatalError in interface org.xml.sax.ErrorHandlerAbortException
public abstract void warning(org.xml.sax.SAXParseException exception)
throws AbortException
warning in interface com.sun.xml.bind.api.ErrorListenerwarning in interface org.xml.sax.ErrorHandlerAbortException
public void pollAbort()
throws AbortException
AbortException
to be thrown, especially when this is driven by some kind of GUI.
AbortExceptionpublic abstract void info(org.xml.sax.SAXParseException exception)
info in interface com.sun.xml.bind.api.ErrorListenerpublic final void debug(java.lang.String msg)
info(SAXParseException)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||