write().
| Modifier and Type | Field and Description |
|---|---|
| private Throwable | |
| private boolean | |
| private Object |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ErrorReporter(Throwable
the exception on which to report e, boolean if set, stack traces will be output for all reports debug)Configures a new Reporter. |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public void | |
| public void |
| base | back to summary |
|---|---|
| private Throwable base | |
| debug | back to summary |
|---|---|
| private boolean debug | |
| output | back to summary |
|---|---|
| private Object output | |
| ErrorReporter | back to summary |
|---|---|
| public ErrorReporter(Throwable e) Configures a new Reporter. Default mode is not to report a stack trace unless the error was not of one of the supported types.
| |
| ErrorReporter | back to summary |
|---|---|
| public ErrorReporter(Throwable e, boolean debug) Configures a new Reporter.
| |
| dispatch | back to summary |
|---|---|
| protected void dispatch(Throwable object, boolean child) Runs the report once all initialization is complete. | |
| println | back to summary |
|---|---|
| protected void println(String line) Prints a line to the underlying | |
| println | back to summary |
|---|---|
| protected void println(StringBuffer line) | |
| report | back to summary |
|---|---|
| protected void report(CompilationFailedException e, boolean child) For CompilationFailedException. | |
| report | back to summary |
|---|---|
| protected void report(GroovyExceptionInterface e, boolean child) For GroovyException. | |
| report | back to summary |
|---|---|
| protected void report(Exception e, boolean child) For Exception. | |
| report | back to summary |
|---|---|
| protected void report(Throwable e, boolean child) For everything else. | |
| stacktrace | back to summary |
|---|---|
| protected void stacktrace(Throwable e, boolean always) Displays an exception's stack trace, if | |
| write | back to summary |
|---|---|
| public void write(PrintStream stream) Writes the error to the specified | |
| write | back to summary |
|---|---|
| public void write(PrintWriter writer) Writes the error to the specified | |