rethrow OutOfMemoryError

This commit is contained in:
peter
2010-05-07 17:14:02 +01:00
parent 4799c40362
commit a82236e2ed
@@ -288,11 +288,17 @@ public class GroovyDslFileIndex extends ScalarIndexExtension<String> {
if (cause instanceof ProcessCanceledException) {
throw (ProcessCanceledException)cause;
}
if (cause instanceof OutOfMemoryError) {
throw (OutOfMemoryError)cause;
}
handleDslError(e, project, dslFile);
}
catch (ProcessCanceledException e) {
throw e;
}
catch (OutOfMemoryError e) {
throw e;
}
catch (Throwable e) { // To handle exceptions in definition script
handleDslError(e, project, dslFile);
}