Skip to main content

Module errors

Module errors 

Source
Expand description

Caravan RPC error types.

Mirrors the Python SDK’s RpcRemoteError / RpcTransportError split. Wire-version 1 keeps the error envelope simple: {ok: false, error: {code, message}} for logical failures; transport-level failures (timeout, 5xx, malformed body) become RpcTransportError.

Structs§

RpcRemoteError
Logical failure returned by a peer in the {ok: false, error: {...}} envelope. The code is the originating exception class name (Python) or the Rust error’s Debug discriminant; message is the user-visible message.

Enums§

RpcError
Top-level error returned from dispatcher helpers. Either the peer rejected the call logically, or the transport layer failed.
RpcTransportError
Transport-level failure: connection refused, timeout, 5xx without an envelope body, malformed JSON, missing fields. Anything that prevents extracting a logical-failure envelope from the peer.