Skip to content

rulvar API reference


rulvar API reference / @rulvar/anthropic / anthropicErrorToWire

Function: anthropicErrorToWire()

ts
function anthropicErrorToWire(error): WireError;

Defined in: packages/anthropic/src/wire.ts:598

Projects an SDK/API error into the retryable WireError vocabulary: 429 rate limits surface retryAfterMs and the x-ratelimit-* buckets; 529 overloaded and 5xx are retryable transport; everything else is terminal transport. Adapters never sleep internally.

Parameters

ParameterType
errorunknown

Returns

WireError