Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.38 KB

generative-ai.googlegenerativeaifetcherror.md

File metadata and controls

29 lines (19 loc) · 1.38 KB

Home > @google/generative-ai > GoogleGenerativeAIFetchError

GoogleGenerativeAIFetchError class

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

Constructors

Constructor Modifiers Description
(constructor)(message, status, statusText, errorDetails) Constructs a new instance of the GoogleGenerativeAIFetchError class

Properties

Property Modifiers Type Description
errorDetails? ErrorDetails[] (Optional)
status? number (Optional)
statusText? string (Optional)