Skip to main content

Module error

Module error 

Source
Expand description

Typed errors and retry policy.

The broker attaches a structured ErrorDetail to failures in the udb-error-detail-bin trailer. Without decoding it a caller sees only a gRPC code and a message, and has to pattern-match on error strings to learn whether a failure is retryable, which capability was missing, or which field was rejected — exactly the things the broker already said precisely.

Structs§

CallPolicy
Per-call deadline and retry policy.
UdbError
A Status plus the broker’s structured detail, when it sent one.

Constants§

ERROR_DETAIL_TRAILER
The metadata key the broker uses. The -bin suffix tells gRPC the value is raw bytes rather than ASCII, so tonic base64-decodes it for us.