diff --git a/java/debugger/impl/src/com/intellij/debugger/actions/ThrowExceptionAction.java b/java/debugger/impl/src/com/intellij/debugger/actions/ThrowExceptionAction.java index 50692cb131f6..54b5890ea56f 100644 --- a/java/debugger/impl/src/com/intellij/debugger/actions/ThrowExceptionAction.java +++ b/java/debugger/impl/src/com/intellij/debugger/actions/ThrowExceptionAction.java @@ -71,7 +71,7 @@ public class ThrowExceptionAction extends DebuggerAction { thread.stop((ObjectReference)value); } catch (Exception e) { - showError(debugProcess.getProject(), DebuggerBundle.message("error.early.return", e.getLocalizedMessage())); + showError(debugProcess.getProject(), DebuggerBundle.message("error.throw.exception", e.getLocalizedMessage())); return; } //noinspection SSBasedInspection @@ -147,7 +147,7 @@ public class ThrowExceptionAction extends DebuggerAction { myEditor = new XDebuggerExpressionEditor(myProject, myEditorsProvider, "throwExceptionValue", myFrame.getSourcePosition(), XExpressionImpl.EMPTY_EXPRESSION, false, true, false); - setTitle("Exception"); + setTitle("Exception To Throw"); init(); } diff --git a/resources-en/src/messages/DebuggerBundle.properties b/resources-en/src/messages/DebuggerBundle.properties index 6b9ed4a85cb5..bc62a95740cc 100644 --- a/resources-en/src/messages/DebuggerBundle.properties +++ b/resources-en/src/messages/DebuggerBundle.properties @@ -30,6 +30,7 @@ error.modification.watchpoints.not.supported=Target VM does not support modifica error.native.method.exception=None of the frames through and including frame may be native error.executing.finally=Error while executing finally blocks: {0} error.early.return=Error while doing early return: {0} +error.throw.exception=Error while throwing exception: {0} warning.finally.block.detected=Non-empty finally blocks detected: button.drop.anyway=Do Not Execute button.execute.finally=Execute Finally Blocks