CompilationFailedException (groovy 2.4.7 API)
Date: 2016-06-03

Package: org.codehaus.groovy.control

## [Java] Class CompilationFailedException

- org.codehaus.groovy.control.CompilationFailedException

- Thrown when compilation fails from source errors.

  Authors:
    Chris Poirier

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `protected int` | `phase` |
    `protected ProcessingUnit` | `unit` |

  - ### Constructor Summary

    Constructors
    Constructor and description
    `CompilationFailedException (int phase, ProcessingUnit unit, Throwable cause)`
    `CompilationFailedException (int phase, ProcessingUnit unit)`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `ProcessingUnit` | `getUnit()` Formats the error data as a String.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class GroovyRuntimeException` | `getLocationText, getMessage, getMessageWithoutLocationText, getModule, getNode, setModule`
    `class RuntimeException` | `printStackTrace, printStackTrace, printStackTrace, fillInStackTrace, getCause, initCause, toString, getMessage, getLocalizedMessage, getStackTrace, setStackTrace, addSuppressed, getSuppressed, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### protected int phase

    - #### protected ProcessingUnit unit

  - ### Constructor Detail

    - #### public CompilationFailedException(int phase, ProcessingUnit unit, Throwable cause)

    - #### public CompilationFailedException(int phase, ProcessingUnit unit)

  - ### Method Detail

    - #### public ProcessingUnit getUnit()

      Formats the error data as a String.