JsonRpcError.ErrorDetail.Code 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個數字,表示所發生的錯誤類型。
[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 的錯誤碼保留給規範或本函式庫定義的錯誤。 超出該範圍的代碼則適用於應用程式特定的錯誤代碼。
- 屬性