Skip to content

InvalidArgumentException

Namespace: Vercel.AI.Operations

public sealed class InvalidArgumentException : AiSdkException, ISerializable

Invalid caller argument. Maps to InvalidArgumentError.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable

View source

InvalidArgumentException(string, object?, string)

Section titled “InvalidArgumentException(string, object?, string)”
public InvalidArgumentException(string parameter, object? value, string message)

Creates the exception.

Parameters

Name Type Description
parameter string
value object
message string

View source

public string Parameter { get; }

Parameter name.

Value: string

View source

public object? Value { get; }

Rejected value.

Value: object

View source

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