|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.tools.ErrorReporter
public class ErrorReporter
Provides services for reporting compilation errors to the
user. Primary entry point is write()
.
Constructor Summary | |
---|---|
ErrorReporter(Throwable e)
Configures a new Reporter. |
|
ErrorReporter(Throwable e,
boolean debug)
Configures a new Reporter. |
Method Summary | |
---|---|
protected void |
dispatch(Throwable object,
boolean child)
Runs the report once all initialization is complete. |
protected void |
println(String line)
Prints a line to the underlying PrintStream |
protected void |
println(StringBuffer line)
|
protected void |
report(CompilationFailedException e,
boolean child)
For CompilationFailedException. |
protected void |
report(Exception e,
boolean child)
For Exception. |
protected void |
report(GroovyExceptionInterface e,
boolean child)
For GroovyException. |
protected void |
report(Throwable e,
boolean child)
For everything else. |
protected void |
stacktrace(Throwable e,
boolean always)
Displays an exception's stack trace, if debug or
always . |
void |
write(PrintStream stream)
Writes the error to the specified PrintStream . |
void |
write(PrintWriter writer)
Writes the error to the specified PrintWriter . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ErrorReporter(Throwable e)
e
- the exception on which to reportpublic ErrorReporter(Throwable e, boolean debug)
e
- the exception on which to reportdebug
- if set, stack traces will be output for all reportsMethod Detail |
---|
public void write(PrintStream stream)
PrintStream
.
public void write(PrintWriter writer)
PrintWriter
.
protected void dispatch(Throwable object, boolean child)
protected void report(CompilationFailedException e, boolean child)
protected void report(GroovyExceptionInterface e, boolean child)
protected void report(Exception e, boolean child)
protected void report(Throwable e, boolean child)
protected void println(String line)
PrintStream
protected void println(StringBuffer line)
protected void stacktrace(Throwable e, boolean always)
debug
or
always
.
|
Copyright © 2003-2009 The Codehaus. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |