Skip to content
Meshline
SDK 1.1.0 · TypeView source on GitHub

Developer guide · API index

Members on this page

Meshline.Sdk

Meshline.Models.Protocol

RpcError Class

Contains a JSON-RPC error number, message, and optional structured details.

public sealed record RpcError : Meshline.Models.Protocol.ProtocolModel, System.IEquatable<Meshline.Models.Protocol.RpcError>

Inheritance System.Object → ProtocolModel → RpcError

Implements System.IEquatable<RpcError>

Properties

RpcError.Code Property

The numeric JSON-RPC error code.

public long Code { get; init; }

Property Value

System.Int64

RpcError.Data Property

Optional structured error details, with JSON values cloned on assignment.

public System.Collections.Immutable.ImmutableDictionary<string,System.Text.Json.JsonElement>? Data { get; init; }

Property Value

System.Collections.Immutable.ImmutableDictionary<System.String,System.Text.Json.JsonElement>

RpcError.Message Property

The relay's human-readable JSON-RPC error description.

public string Message { get; init; }

Property Value

System.String

Methods

RpcError.GetRelayErrorCode() Method

Maps the JSON-RPC numeric code to a symbolic relay error code when known.

public string? GetRelayErrorCode();

Returns

System.String
The known symbolic error code, or null for an unmapped number.