|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.stjs.generator.javac.ErrorReporter
public final class ErrorReporter
Handle errors detected in utility classes. By default, the error reporter throws a RuntimeException, but clients of the utility library may register a handler to change the behavior. For example, type checkers can direct errors to the checkers.source.SourceChecker class.
| Method Summary | |
|---|---|
static void |
errorAbort(String msg)
Log an error message and abort processing. |
static void |
errorAbort(String msg,
Throwable cause)
|
static void |
setHandler(ErrorHandler h)
Register a handler to customize error reporting. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setHandler(ErrorHandler h)
public static void errorAbort(String msg)
msg - The error message to log.
public static void errorAbort(String msg,
Throwable cause)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||