Skip to content
1 min read · 124 words

Variable: E_SHIM_RESOLUTION_FAILED

ts
const E_SHIM_RESOLUTION_FAILED: CreatedException<[string]>;

Defined in: src/shims/index.ts:203

Thrown when an AdkResolverFn rejects (or throws synchronously). The original failure is preserved on .cause so callers can inspect the underlying reason (a failed fetch, a malformed bundle, a Worker handshake that never completed, …); the message additionally embeds its .message for log lines that only surface the top-level error.

Remarks

Non-fatal by design: a resolver failure is an environmental/runtime condition (a bad network, a missing asset, an unregistered ambient resolver), not a programming error, and the memo is cleared on this path — the very next AdkShim.resolve call re-invokes the resolver and can still succeed. The ambient adk shim raises this same exception, with a distinct cause message, when AdkShim.resolve is called before any registerAdkResolver registration.