org.codehaus.groovy.control
Class CompilationFailedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.codehaus.groovy.GroovyException
org.codehaus.groovy.control.CompilationFailedException
- All Implemented Interfaces:
- GroovyExceptionInterface, Serializable
- public class CompilationFailedException
- extends GroovyException
Thrown when compilation fails from source errors.
- Version:
- $Id: CompilationFailedException.java,v 1.1 2004/04/19 07:29:44 cpoirier Exp $
- Author:
- Chris Poirier
- See Also:
- Serialized Form
phase
protected int phase
unit
protected ProcessingUnit unit
CompilationFailedException
public CompilationFailedException(int phase,
ProcessingUnit unit)
- Initializes the exception with the phase and ProcessingUnit.
toString
public String toString()
- Formats the error data as a String.
getUnit
public ProcessingUnit getUnit()
- Returns the ProcessingUnit in which the error occurred.
Copyright © 2003-2004 The Codehaus. All Rights Reserved.