Skip to content

RpcClientError.ts

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



Represents a client-side RPC defect, such as a protocol violation or decoding failure, with a message and original cause.

Signature

declare class RpcClientDefect

Source

Since v4.0.0

Error wrapper for RPC client failures, including worker, socket, HTTP client, and client protocol defect failures.

Signature

declare class RpcClientError

Source

Since v4.0.0

Marks this value as an RPC client error for runtime guards.

Signature

readonly [TypeId]: "~effect/rpc/RpcClientError"

Source

Since v4.0.0