2.1.0 (latest) 2.0.0 1.1.0 1.0.0

    public sealed class ErrorMessage : IMessage<ErrorMessage>, IEquatable<ErrorMessage>, IDeepCloneable<ErrorMessage>, IBufferMessage, IMessage

Reference documentation and code samples for the Data Analytics API with Gemini v1 API 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ErrorMessage

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ErrorMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ErrorMessage), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ErrorMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ErrorMessage), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ErrorMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ErrorMessage), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.GeminiDataAnalytics.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1)

## Assembly

Google.Cloud.GeminiDataAnalytics.V1.dll

## Constructors

### ErrorMessage()

    public ErrorMessage()

### ErrorMessage(ErrorMessage)

    public ErrorMessage(ErrorMessage other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1/latest/Google.Cloud.GeminiDataAnalytics.V1.ErrorMessage` |

## Properties

### Text

    public string Text { get; set; }

Output only. The text of the error.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |