RpcStatus 类
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
RpcStatus 类通过以下字段提供正在运行或已完成的 RPC 的状态:
state
- RPC 的状态。
error_name
- 由应用设置的错误名称。仅在状态为
APPLICATION_ERROR
时。应用程序用来传输某个错误的具体原因。
error_message
- 与 RPC 状态有关的错误消息。
RpcStatus 类提供子类、状态、可能的 RPC 状态的枚举:
OK
- RPC 已成功完成。
RUNNING
- RPC 仍在运行(未完成)
REQUEST_ERROR
- 请求格式不正确或不完整。
SERVER_ERROR
- 服务器出现意外错误。
NETWORK_ERROR
- 网络出错。
APPLICATION_ERROR
- 应用指示存在错误。处于此状态时,RPC 需要自动设置
application_error
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-11-02。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]