Table of Contents

Class JobError

Namespace
GenerativeAI.Types
Assembly
GenerativeAI.dll

Represents an error that occurred during job execution.

public class JobError
Inheritance
JobError
Inherited Members
Extension Methods

Properties

Code

The status code, which should be an enum value of google.rpc.Code.

[JsonPropertyName("code")]
public int? Code { get; set; }

Property Value

int?

Details

A list of messages that carry the error details. There is a common set of message types for APIs to use.

[JsonPropertyName("details")]
public List<string>? Details { get; set; }

Property Value

List<string>

Message

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the details field.

[JsonPropertyName("message")]
public string? Message { get; set; }

Property Value

string