errors library

Classes

SdkErrorDetail
Self-describing detail attached to an SdkError. The type is the fully-qualified protobuf message name (e.g. type.googleapis.com/google.rpc.RetryInfo); value is the wire bytes.

Functions

sdkErrorInterceptor() → Interceptor
Builds an Interceptor that wraps every thrown ConnectException in an SdkError. Place this OUTERMOST in the interceptor chain so it sees the final error after retry, breaker, and every other interceptor have run:

Typedefs

SdkErrorCode = Code
Status code on an SdkError. Re-exported from package:connectrpc so consumers do not need to import the transport package to catch and classify errors.

Exceptions / Errors

SdkError
Stable typed boundary for RPC failures.