LocalRpcException.ErrorCode 属性

定义

获取或设置 error.code 属性的值。

public int ErrorCode { get; set; }
member this.ErrorCode : int with get, set
Public Property ErrorCode As Integer

属性值

注解

默认值设置为特殊的常规错误代码: InvocationError 这可能设置为应用程序更有意义的错误代码,使客户端能够以编程方式响应错误条件。 应用程序定义的值应避免为 JSON-RPC 协议本身保留的 [-32768, -32000] 范围。

适用于