LlmCall.HTTP.Error exception (llm_call v0.1.0)

Copy Markdown View Source

Raised when a streaming call fails after LlmCall.stream/3 has returned.

An Enumerable cannot return a tagged tuple, so a non-2xx response, an unparseable payload, or a provider error event raises this exception with the decoded %LlmCall.Error{} in :error.

Use LlmCall.complete/3 for a tuple-returning call, or rescue this exception and read error/1.

Summary

Functions

The canonical error carried by the exception.

Types

t()

@type t() :: %LlmCall.HTTP.Error{__exception__: term(), error: LlmCall.Error.t()}

Functions

error(error)

@spec error(t()) :: LlmCall.Error.t()

The canonical error carried by the exception.