Skip to content

TRPCClientError

Class: warmhub.TRPCClientError

TRPCClientError(message: str, *, data: Mapping[str, Any] | None = None, cause: BaseException | None = None)

Carrier for a tRPC error envelope.

The Python stand-in for @trpc/client’s TRPCClientError. It exists so to_warmhub_error can port the unwrap rule: when the fetch layer raises a WarmHubError, the tRPC link wraps it and the original must be recovered from cause instead of collapsing to a generic BACKEND.

Cause. Raised by the tRPC layer when the server returns an error envelope, or when it wraps an error the fetch layer already raised.

Retryability. Not decidable here — this type is a carrier. Convert with to_warmhub_error and ask is_retryable about the result; the wrapped cause is what carries the kind.

Corrective action. Do not catch this directly in user code. Catch WarmHubError, which is what every public method raises.

message = message

Documentation is not yet available.

data = data

Documentation is not yet available.

cause = cause

Documentation is not yet available.