0.16.0 (latest) 0.15.0 0.14.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class ErrorMessage.

An error message from a tool call.

This message is used to represent an error that occurred while an agent was
trying to use a tool. It's important to note that not all errors are
terminal. Many are recoverable, and the agent may use the information from
this error message to self-correct and retry the tool call or try a
different approach.
For example, if a data query fails, the agent might receive an
`ErrorMessage`, analyze it, and then generate a corrected query.
Clients should be cautious about interpreting this message as a definitive
failure. It can be part of the agent's normal, iterative process of
completing a task. Surfacing these errors directly to end-users without
context (e.g., as a "hard failure") may be misleading.

Generated from protobuf message `google.cloud.geminidataanalytics.v1beta.ErrorMessage`

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ text` | `string` Output only. The text of the error. |

### getText

Output only. The text of the error.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setText

Output only. The text of the error.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |