Skip to content

ApiConnectionException

Namespace: Vercel.AI.Provider

public class ApiConnectionException : AiSdkException, ISerializable

The connection to the provider failed.

Inheritance: object → Exception → AiSdkException

Implements: ISerializable

Derived: ApiTimeoutException

View source

ApiConnectionException(string, Exception?)

Section titled “ApiConnectionException(string, Exception?)”
public ApiConnectionException(string message, Exception? innerException = null)

Creates the 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