public class ErrorReporter extends Object
Provides services for reporting compilation errors to the
user. Primary entry point is write()
.
Constructor and description |
---|
ErrorReporter(Throwable e) Configures a new Reporter. |
ErrorReporter(Throwable e, boolean debug) Configures a new Reporter. |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
write(PrintStream stream) Writes the error to the specified PrintStream . |
|
public void |
write(PrintWriter writer) Writes the error to the specified PrintWriter . |
Configures a new Reporter. Default mode is not to report a stack trace unless the error was not of one of the supported types.
e
- the exception on which to reportConfigures a new Reporter.
e
- the exception on which to reportdebug
- if set, stack traces will be output for all reports Writes the error to the specified PrintStream
.
Writes the error to the specified PrintWriter
.
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.