Home > @google/generative-ai > GoogleGenerativeAIFetchError
Error class covering HTTP errors when calling the server. Includes HTTP status, statusText, and optional details, if provided in the server response.
Signature:
export declare class GoogleGenerativeAIFetchError extends GoogleGenerativeAIError
Extends: GoogleGenerativeAIError
Constructor | Modifiers | Description |
---|---|---|
(constructor)(message, status, statusText, errorDetails) | Constructs a new instance of the GoogleGenerativeAIFetchError class |
Property | Modifiers | Type | Description |
---|---|---|---|
errorDetails? | ErrorDetails[] | (Optional) | |
status? | number | (Optional) | |
statusText? | string | (Optional) |