IDEA-148408 Raise exception during debugging - resources

This commit is contained in:
Egor Ushakov
2017-12-20 12:26:03 +03:00
parent d8d58b9b48
commit d7b85ebdcf
2 changed files with 3 additions and 2 deletions
@@ -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();
}
@@ -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