Lines Matching defs:reply
202 /**Evaluate and convert transaction reply to object. Return the exception raised during the
204 static napi_value UnmarshalReply(napi_env env, const TransactionContext &ctx, const ApiReplyInfo &reply)
211 const auto &message = reply.exception_.message_;
212 ErrCode code = reply.exception_.code_;
215 } else if (reply.exception_.code_ != NO_ERROR) {
219 LOG_I("Start to Unmarshal return value: %{public}s", reply.resultValue_.dump().c_str());
220 const auto resultType = reply.resultValue_.type();
225 NAPI_CALL(env, napi_create_array_with_length(env, reply.resultValue_.size(), &result));
226 for (size_t idx = 0; idx < reply.resultValue_.size(); idx++) {
228 NAPI_CALL(env, UnmarshalObject(env, reply.resultValue_.at(idx), &item, ctx.jsThis_));
232 NAPI_CALL(env, UnmarshalObject(env, reply.resultValue_, &result, ctx.jsThis_));
242 auto reply = ApiReplyInfo();
243 g_apiTransactClient.Transact(ctx.callInfo_, reply);
244 auto resultValue = UnmarshalReply(env, ctx, reply);