Skip to content

AbortErrors

Namespace: Vercel.AI.ProviderUtils

public static class AbortErrors

Recognizes abort and timeout failures that must not be retried.

Inheritance: object

View source

public static bool IsAbortError(Exception? error)

True for DelayAbortedException, cancellation, TimeoutException, and exceptions named AbortError, ResponseAborted, or TimeoutError.

Parameters

Name Type Description
error Exception

Returns: bool

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product