StreamProviderError
Namespace: Vercel.AI.Prompt
public sealed class StreamProviderError : Exception, ISerializableA normalized stream provider error. Maps to StreamProviderError.
Inheritance: object → Exception
Implements: ISerializable
Constructors
Section titled “Constructors”StreamProviderError(string, string?, object?, int?, bool, object?)
Section titled “StreamProviderError(string, string?, object?, int?, bool, object?)”public StreamProviderError(string message, string? type, object? code, int? statusCode, bool isRetryable, object? data)Creates the error.
Parameters
| Name | Type | Description |
|---|---|---|
message |
string | |
type |
string | |
code |
object | |
statusCode |
int? | |
isRetryable |
bool | |
data |
object |
Properties
Section titled “Properties”public object? Code { get; }Provider code.
Value: object
public object? Data { get; }Original payload.
Value: object
IsRetryable
Section titled “IsRetryable”public bool IsRetryable { get; }Whether the caller should retry.
Value: bool
StatusCode
Section titled “StatusCode”public int? StatusCode { get; }HTTP status.
Value: int?
public string? Type { get; }Provider type.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product