Skip to content

Function: timeoutError()

@providerprotocol/ai


@providerprotocol/ai / http / timeoutError

timeoutError(timeout, provider, modality): UPPError

Defined in: src/http/errors.ts:173

Creates a UPPError for request timeout.

Use this when the request exceeds the configured timeout duration and is aborted by the AbortController.

number

The timeout duration in milliseconds that was exceeded

string

Provider identifier for error context

Modality

Request modality for error context

UPPError

A UPPError with TIMEOUT code