public class MultipleCompilationErrorsException
extends CompilationFailedException
Represents multiple other exceptions
| Modifiers | Name | Description |
|---|---|---|
protected ErrorCollector |
collector |
Collector containing the aggregated compilation errors. |
| Fields inherited from class | Fields |
|---|---|
class CompilationFailedException |
phase, unit |
| Constructor and description |
|---|
MultipleCompilationErrorsException(ErrorCollector ec)Creates an exception that wraps the supplied error collector. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public ErrorCollector |
getErrorCollector()Returns the collector containing the recorded compilation errors. |
|
public String |
getMessage()Formats the aggregated compilation errors as a message string. |
| Methods inherited from class | Name |
|---|---|
class CompilationFailedException |
getUnit |
class GroovyRuntimeException |
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule |
Collector containing the aggregated compilation errors.
Creates an exception that wraps the supplied error collector.
ec - the collector to wrap, or null to create an empty oneReturns the collector containing the recorded compilation errors.
Formats the aggregated compilation errors as a message string.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.