ExceptionUtils.rethrow

This commit is contained in:
Stepan Koltsov
2012-06-06 23:58:19 +04:00
parent 9da5fe11d9
commit 3408c9833c
4 changed files with 45 additions and 14 deletions
@@ -16,7 +16,6 @@
package org.jetbrains.jet.codegen;
import com.google.common.base.Objects;
import com.google.common.base.Predicates;
import com.google.common.collect.Lists;
import com.intellij.openapi.util.Pair;
@@ -24,6 +23,7 @@ import com.intellij.psi.PsiFile;
import com.intellij.testFramework.UsefulTestCase;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.jet.utils.ExceptionUtils;
import org.jetbrains.jet.JetTestUtils;
import org.jetbrains.jet.analyzer.AnalyzeExhaust;
import org.jetbrains.jet.cli.jvm.compiler.JetCoreEnvironment;
@@ -43,7 +43,6 @@ import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Collections;
import java.util.List;
/**
@@ -163,7 +162,7 @@ public abstract class CodegenTestCase extends UsefulTestCase {
}
}
catch (Exception e) {
throw new RuntimeException(e);
throw ExceptionUtils.rethrow(e);
}
}