public class CompilationFailedException
extends GroovyRuntimeException
Thrown when compilation fails from source errors.
| Modifiers | Name | Description |
|---|---|---|
protected int |
phase |
Compilation phase in which the failure occurred. |
protected ProcessingUnit |
unit |
Processing unit that reported the failure. |
| Constructor and description |
|---|
CompilationFailedException(int phase, ProcessingUnit unit, Throwable cause)Creates a compilation failure with an underlying cause. |
CompilationFailedException(int phase, ProcessingUnit unit)Creates a compilation failure without an underlying cause. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public ProcessingUnit |
getUnit() |
| Methods inherited from class | Name |
|---|---|
class GroovyRuntimeException |
getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule |
Compilation phase in which the failure occurred.
Processing unit that reported the failure.
Creates a compilation failure with an underlying cause.
phase - the phase in which the failure occurredunit - the processing unit that failedcause - the underlying causeCreates a compilation failure without an underlying cause.
phase - the phase in which the failure occurredunit - the processing unit that failedCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.