From 9761e331106d9b43f5bb0a1e804fae9d209cd809 Mon Sep 17 00:00:00 2001 From: Alexey Sedunov Date: Fri, 2 Mar 2018 15:36:30 +0300 Subject: [PATCH] Refactor: Use RefactoringErrorHintException to report errors in test mode --- .../org/jetbrains/kotlin/idea/codeInsight/CodeInsightUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }