JdwpReplyPacket replyPacket = requestVM(
JdwpCommandPacket.TR_OWNED_MONITOR_STACK_DEPTH, this);
switch (replyPacket.errorCode()) {
case JdwpReplyPacket.INVALID_THREAD:
case JdwpReplyPacket.INVALID_OBJECT:
throw new ObjectCollectedException(
JDIMessages.ThreadReferenceImpl_thread_object_invalid);
case JdwpReplyPacket.THREAD_NOT_SUSPENDED:
throw new IncompatibleThreadStateException(
JDIMessages.ThreadReferenceImpl_Thread_was_not_suspended_5);
case JdwpReplyPacket.NOT_IMPLEMENTED: