Skip to content

AiSdkException

Namespace: Vercel.AI.Provider

public class AiSdkException : Exception, ISerializable

Base exception for the community .NET port of the Vercel AI SDK.

Inheritance: object → Exception

Implements: ISerializable

Derived: GatewayError, DownloadException, InvalidToolApprovalException, NoOutputGeneratedException, ToolCallNotFoundForApprovalException, ToolChoiceViolationException, TypeValidationException, MCPClientError, DecisionUnsupportedQuestionTypeException, DownloadException, InvalidArgumentException, InvalidResponseDataException, NoImageGeneratedException, NoSpeechGeneratedException, NoTranscriptGeneratedException, NoTranslationGeneratedException, NoVideoGeneratedException, OperationRetryException, RetryableCallException, UnsupportedFunctionalityException, UnsupportedModelVersionException, InvalidDataContentException, InvalidPromptException, ApiConnectionException, ApiException, MessageConversionException

View source

public AiSdkException(string message)

Creates an exception with a message.

Parameters

Name Type Description
message string

View source

public AiSdkException(string message, Exception innerException)

Creates an exception with a message and an inner exception.

Parameters

Name Type Description
message string
innerException Exception

View source

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