throw correct exception

This commit is contained in:
Eugene Zhuravlev
2011-03-03 17:33:48 +01:00
parent ba1e36ad20
commit e09c285fe9
@@ -107,6 +107,9 @@ public class StackFrameProxyImpl extends JdiProxy implements StackFrameProxy {
final ThreadReference threadRef = myThreadProxy.getThreadReference();
myStackFrame = threadRef.frame(getFrameIndex());
}
catch (IndexOutOfBoundsException e) {
throw new EvaluateException(e.getMessage(), e);
}
catch (ObjectCollectedException e) {
throw EvaluateExceptionUtil.createEvaluateException(DebuggerBundle.message("evaluation.error.thread.collected"));
}