| java.lang.Object org.codehaus.groovy.tools.ErrorReporter
ErrorReporter | public class ErrorReporter (Code) | | Provides services for reporting compilation errors to the
user. Primary entry point is write() .
author: Chris Poirier version: $Revision: 2255 $ |
ErrorReporter | public ErrorReporter(Throwable e)(Code) | | Configures a new Reporter. Default mode is not to report a stack trace unless
the error was not of one of the supported types.
Parameters: e - the exception on which to report |
ErrorReporter | public ErrorReporter(Throwable e, boolean debug)(Code) | | Configures a new Reporter.
Parameters: e - the exception on which to report Parameters: debug - if set, stack traces will be output for all reports |
dispatch | protected void dispatch(Throwable object, boolean child)(Code) | | Runs the report once all initialization is complete.
|
println | protected void println(String line)(Code) | | Prints a line to the underlying PrintStream
|
report | protected void report(Exception e, boolean child)(Code) | | For Exception.
|
report | protected void report(Throwable e, boolean child)(Code) | | For everything else.
|
stacktrace | protected void stacktrace(Throwable e, boolean always)(Code) | | Displays an exception's stack trace, if debug or
always .
|
write | public void write(PrintStream stream)(Code) | | Writes the error to the specified PrintStream .
|
write | public void write(PrintWriter writer)(Code) | | Writes the error to the specified PrintWriter .
|
|
|