diff --git a/idea/src/org/jetbrains/kotlin/idea/codeInsight/CodeInsightUtils.java b/idea/src/org/jetbrains/kotlin/idea/codeInsight/CodeInsightUtils.java index b35ed9d0b87..d7cc43ca002 100644 --- a/idea/src/org/jetbrains/kotlin/idea/codeInsight/CodeInsightUtils.java +++ b/idea/src/org/jetbrains/kotlin/idea/codeInsight/CodeInsightUtils.java @@ -293,7 +293,7 @@ public class CodeInsightUtils { @NotNull String message, @NotNull String title, @Nullable String helpId ) { - if (ApplicationManager.getApplication().isUnitTestMode()) throw new RuntimeException(message); + if (ApplicationManager.getApplication().isUnitTestMode()) throw new CommonRefactoringUtil.RefactoringErrorHintException(message); CommonRefactoringUtil.showErrorHint(project, editor, message, title, helpId); }