GatewayNotFoundError
Namespace: Vercel.AI.Gateway
public sealed class GatewayNotFoundError : GatewayError, ISerializableA Gateway resource was not found.
Inheritance: object → Exception → AiSdkException → GatewayError
Implements: ISerializable
Constructors
Section titled “Constructors”GatewayNotFoundError(string?, int, Exception?, string?)
Section titled “GatewayNotFoundError(string?, int, Exception?, string?)”public GatewayNotFoundError(string? message = null, int statusCode = 404, Exception? cause = null, string? generationId = null)Creates a not-found error.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | |
statusCode |
int | |
cause |
Exception | |
generationId |
string |
Properties
Section titled “Properties”public override string Type { get; }Gateway error type.
Value: string
Methods
Section titled “Methods”IsInstance(Exception?)
Section titled “IsInstance(Exception?)”public static bool IsInstance(Exception? error)True when <code class=“paramref”>error</code> is this error.
Parameters
| Name | Type | Description |
|---|---|---|
error |
Exception |
Returns: bool
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product