Skip to content

ApiUserAbortException

Namespace: Vercel.AI.Provider

public sealed class ApiUserAbortException : OperationCanceledException, ISerializable

The 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

View source

public ApiUserAbortException()

Creates the exception.

View source

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

View source

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