org.codehaus.groovy.control
Class CompilationFailedException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.codehaus.groovy.GroovyException
              extended byorg.codehaus.groovy.control.CompilationFailedException
All Implemented Interfaces:
GroovyExceptionInterface, java.io.Serializable

public class CompilationFailedException
extends GroovyException

Thrown when compilation fails from source errors.

Version:
$Id: CompilationFailedException.java,v 1.2 2005/01/27 14:22:21 jstrachan Exp $
Author:
Chris Poirier
See Also:
Serialized Form

Field Summary
protected  int phase
           
protected  ProcessingUnit unit
           
 
Fields inherited from class org.codehaus.groovy.GroovyException
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
CompilationFailedException(int phase, ProcessingUnit unit)
           
CompilationFailedException(int phase, ProcessingUnit unit, java.lang.Throwable cause)
           
 
Method Summary
 ProcessingUnit getUnit()
          Returns the ProcessingUnit in which the error occurred.
 java.lang.String toString()
          Formats the error data as a String.
 
Methods inherited from class org.codehaus.groovy.GroovyException
isFatal, setFatal
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

phase

protected int phase

unit

protected ProcessingUnit unit
Constructor Detail

CompilationFailedException

public CompilationFailedException(int phase,
                                  ProcessingUnit unit,
                                  java.lang.Throwable cause)

CompilationFailedException

public CompilationFailedException(int phase,
                                  ProcessingUnit unit)
Method Detail

toString

public java.lang.String toString()
Formats the error data as a String.


getUnit

public ProcessingUnit getUnit()
Returns the ProcessingUnit in which the error occurred.



Copyright © 2003-2005 The Codehaus. All Rights Reserved.