You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| [(constructor)(message)](./generative-ai.googlegenerativeaierror._constructor_.md) | | Constructs a new instance of the <code>GoogleGenerativeAIError</code> class |
| [(constructor)(message, status, statusText, errorDetails)](./generative-ai.googlegenerativeaifetcherror._constructor_.md) | | Constructs a new instance of the <code>GoogleGenerativeAIFetchError</code> class |
| [(constructor)(message, response)](./generative-ai.googlegenerativeairesponseerror._constructor_.md) | | Constructs a new instance of the <code>GoogleGenerativeAIResponseError</code> class |
21
+
22
+
## Properties
23
+
24
+
| Property | Modifiers | Type | Description |
25
+
| --- | --- | --- | --- |
26
+
| [response?](./generative-ai.googlegenerativeairesponseerror.response.md) | | T | _(Optional)_ |
Copy file name to clipboardexpand all lines: docs/reference/main/generative-ai.md
+3
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,9 @@
11
11
|[ChatSession](./generative-ai.chatsession.md)| ChatSession class that enables sending chat messages and stores history of sent and received messages so far. |
12
12
|[GenerativeModel](./generative-ai.generativemodel.md)| Class for generative model APIs. |
13
13
|[GoogleGenerativeAI](./generative-ai.googlegenerativeai.md)| Top-level class for this SDK |
14
+
|[GoogleGenerativeAIError](./generative-ai.googlegenerativeaierror.md)| Basic error type for this SDK. |
15
+
|[GoogleGenerativeAIFetchError](./generative-ai.googlegenerativeaifetcherror.md)| Error class covering HTTP errors when calling the server. Includes HTTP status, statusText, and optional details, if provided in the server response. |
16
+
|[GoogleGenerativeAIResponseError](./generative-ai.googlegenerativeairesponseerror.md)| Errors in the contents of a response from the model. This includes parsing errors, or responses including a safety block reason. |
0 commit comments