code: private void checkRpcReply() throws RpcException {
  
          if (_replyStatus != ReplyStatus.MSG_ACCEPTED.getValue()) {
              String msg = String.format("RPC call is REJECTED, rejectStat=%d", _rejectStatus);
              throw new RpcException(RejectStatus.fromValue(_rejectStatus), msg);
          } else {
              if (_acceptStatus != AcceptStatus.SUCCESS.getValue()) {
                  String msg = String.format("RPC call is ACCEPTED, but the status is not success, acceptStat=%d",
                          _acceptStatus);
                  throw new RpcException(AcceptStatus.fromValue(_acceptStatus), msg);
              }
          }
      }
docs: Check whether the reply is successful. If not, log and throw exception.
  the function is usually called after unmarshalling.
  
  @throws RpcException