Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Constructor and description |
---|
ErrorReporter
(Throwable e) Configures a new Reporter. |
ErrorReporter
(Throwable e, boolean debug) Configures a new Reporter. |
Type | Name and description |
---|---|
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(GroovyExceptionInterface e, boolean child) For GroovyException. |
protected void |
report(Exception e, boolean child) For Exception. |
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 . |
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 reportsRuns the report once all initialization is complete.
Prints a line to the underlying PrintStream
For CompilationFailedException.
For GroovyException.
For Exception.
For everything else.
Displays an exception's stack trace, if debug
or
always
.
Writes the error to the specified PrintStream
.
Writes the error to the specified PrintWriter
.
Copyright © 2003-2015 The Apache Software Foundation. All rights reserved.