RpcClientError.ts
RpcClientError.ts overview
Section titled “RpcClientError.ts overview”Client-side protocol failures reported by unstable RPC transports.
RpcClientError is the error type generated clients use when a call fails
before a remote handler can return its declared typed error. Its reason
covers built-in transport failures from HTTP, sockets, and workers, plus
RpcClientDefect values for malformed or incompatible protocol data.
Since v4.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”errors
Section titled “errors”RpcClientDefect (class)
Section titled “RpcClientDefect (class)”Represents a client-side RPC defect, such as a protocol violation or decoding failure, with a message and original cause.
Signature
declare class RpcClientDefectSince v4.0.0
RpcClientError (class)
Section titled “RpcClientError (class)”Error wrapper for RPC client failures, including worker, socket, HTTP client, and client protocol defect failures.
Signature
declare class RpcClientErrorSince v4.0.0
[TypeId] (property)
Section titled “[TypeId] (property)”Marks this value as an RPC client error for runtime guards.
Signature
readonly [TypeId]: "~effect/rpc/RpcClientError"Since v4.0.0