rethrow ProcessCanceledException
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
package org.jetbrains.jet.codegen;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import com.intellij.openapi.progress.ProcessCanceledException;
|
||||
import com.intellij.openapi.util.Pair;
|
||||
import com.intellij.psi.PsiElement;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -274,6 +275,9 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
|
||||
catch (CompilationException e) {
|
||||
throw e;
|
||||
}
|
||||
catch(ProcessCanceledException e) {
|
||||
throw e;
|
||||
}
|
||||
catch(RuntimeException e) {
|
||||
throw new RuntimeException("Error generating primary constructor of class " + myClass.getName() + " with kind " + kind, e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user