|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.codehaus.groovy.GroovyException
org.codehaus.groovy.tools.CompilationFailuresException
Holds a map of Groovy compilation failures, keyed on source
descriptor. Each failure is an ExceptionCollector
of exceptions produced during compilation of a particular source.
Unlike ExceptionCollector
, it never throws itself.
Created and filled by org.codehaus.groovy.tools.Compiler.
Constructor Summary | |
CompilationFailuresException()
Creates an empty exception. |
Method Summary | |
void |
add(java.lang.String source,
ExceptionCollector exceptions)
Adds a ExceptionCollector to the set. |
ExceptionCollector |
get(java.lang.String source)
Returns the ExceptionCollector for the specified source,
or null. |
java.lang.String |
getMessage()
Returns a string summary of the exception set. |
boolean |
isEmpty()
Returns true if the collector is empty. |
java.util.Iterator |
iterator()
Returns an Iterator to the keys in the set. |
void |
merge(CompilationFailuresException other)
Merges in data from another set. |
int |
size()
Returns the number of sources in the set. |
java.lang.String |
toString()
Returns a string representation of the exception set. |
int |
total()
Returns the number of exceptions in the set. |
Methods inherited from class org.codehaus.groovy.GroovyException |
isFatal, setFatal |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CompilationFailuresException()
Method Detail |
public void add(java.lang.String source, ExceptionCollector exceptions)
ExceptionCollector
to the set. Old values
will be merged.
public void merge(CompilationFailuresException other)
public boolean isEmpty()
public int size()
public int total()
public java.util.Iterator iterator()
Iterator
to the keys in the set.
public ExceptionCollector get(java.lang.String source)
ExceptionCollector
for the specified source,
or null.
public java.lang.String getMessage()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |