Skip to main content

Module error

Module error 

Source

Enums§

RuntimeError

Functions§

error_chain_string
Render an error’s full cause chain (Display of every level, : -joined).
humanize_api_error
Translate an Anthropic API error response into a human-actionable message.
humanize_api_error_with_reset
Like humanize_api_error but surfaces a known rate-limit reset time in the 429 message so the failure is honest rather than cryptic. reset_hint is a human-readable duration string, e.g. "47s".
humanize_network_error
Translate a reqwest transport error into a human-actionable message.
humanize_provider_network_error
Host-aware variant of humanize_network_error for non-Anthropic providers (OpenAI Codex, Groq, local OpenAI-compat endpoints, …).
sanitize_error_type
Map an untrusted provider error-type string onto a vetted static label.

Type Aliases§

Result