ai.errors.InvokeError

The closed error channel of the client surface: every typed failure the stack can produce, the deadline signal that must survive each boundary untouched, and schema-compilation failures from output-format rendering. `throws unknown` is not used on this surface; stored callback positions declare this alias explicitly (TYPE_SYSTEM.md rule 5) and parameter positions infer per call site.

Reference version

Signature

type ai.errors.InvokeError = ai.errors.Failure | baml.errors.Timeout | baml.errors.UnknownError | reflect.errors.CompilationError

The closed error channel of the client surface: every typed failure the stack can produce, the deadline signal that must survive each boundary untouched, and schema-compilation failures from output-format rendering. throws unknown is not used on this surface; stored callback positions declare this alias explicitly (TYPE_SYSTEM.md rule 5) and parameter positions infer per call site.

Cancellation is absent by construction: baml.panics.Cancelled is a panic, so it unwinds past this channel rather than travelling in it. It reaches a caller only through an arm that names it.

Source:<builtin>/ai/ns_errors/errors.bamlbytes 10021124