AbortErrors
Namespace: Vercel.AI.ProviderUtils
public static class AbortErrorsRecognizes abort and timeout failures that must not be retried.
Inheritance: object
Methods
Section titled “Methods”IsAbortError(Exception?)
Section titled “IsAbortError(Exception?)”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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product