語言

JsonRpcError.ErrorDetail.Code 屬性

定義

取得或設定一個數字,表示所發生的錯誤類型。

[System.Runtime.Serialization.DataMember(IsRequired=true, Name="code", Order=0)]
public StreamJsonRpc.Protocol.JsonRpcErrorCode Code { get; set; }
[System.Runtime.Serialization.DataMember(IsRequired=true, Name="code", Order=0)]
[System.Text.Json.Serialization.JsonPropertyName("code")]
[System.Text.Json.Serialization.JsonPropertyOrder(0)]
[System.Text.Json.Serialization.JsonRequired]
public StreamJsonRpc.Protocol.JsonRpcErrorCode Code { get; set; }
[<System.Runtime.Serialization.DataMember(IsRequired=true, Name="code", Order=0)>]
member this.Code : StreamJsonRpc.Protocol.JsonRpcErrorCode with get, set
[<System.Runtime.Serialization.DataMember(IsRequired=true, Name="code", Order=0)>]
[<System.Text.Json.Serialization.JsonPropertyName("code")>]
[<System.Text.Json.Serialization.JsonPropertyOrder(0)>]
[<System.Text.Json.Serialization.JsonRequired>]
member this.Code : StreamJsonRpc.Protocol.JsonRpcErrorCode with get, set
Public Property Code As JsonRpcErrorCode

屬性值

從 -32768 到 -32000 的錯誤碼保留給規範或本函式庫定義的錯誤。 超出該範圍的代碼則適用於應用程式特定的錯誤代碼。

屬性

適用於