Function: timeoutError()
@providerprotocol/ai / http / timeoutError
Function: timeoutError()
Section titled “Function: 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.
Parameters
Section titled “Parameters”timeout
Section titled “timeout”number
The timeout duration in milliseconds that was exceeded
provider
Section titled “provider”string
Provider identifier for error context
modality
Section titled “modality”Request modality for error context
Returns
Section titled “Returns”A UPPError with TIMEOUT code