ApiUserAbortException
Namespace: Vercel.AI.Provider
public sealed class ApiUserAbortException : OperationCanceledException, ISerializableThe call was cancelled through a CancellationToken. It derives from OperationCanceledException,
so catch (OperationCanceledException) handles every caller cancel. It is not an AiSdkException.
Inheritance: object → Exception → SystemException → OperationCanceledException
Implements: ISerializable
Constructors
Section titled “Constructors”ApiUserAbortException()
Section titled “ApiUserAbortException()”public ApiUserAbortException()Creates the exception.
ApiUserAbortException(Exception?, CancellationToken)
Section titled “ApiUserAbortException(Exception?, CancellationToken)”public ApiUserAbortException(Exception? innerException, CancellationToken cancellationToken)Creates the exception for a cancelled <code class=“paramref”>cancellationToken</code>, with the original cancel as the cause.
Parameters
| Name | Type | Description |
|---|---|---|
innerException |
Exception | |
cancellationToken |
CancellationToken |
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product