GeminiError

@Serializable
data class GeminiError(val code: Int, val message: String, val status: String, val details: List<GeminiErrorDetail>? = null)

Represents the detailed error information.

Constructors

Link copied to clipboard
constructor(code: Int, message: String, status: String, details: List<GeminiErrorDetail>? = null)

Properties

Link copied to clipboard
val code: Int

The HTTP status code of the error.

Link copied to clipboard

A list of additional details about the error.

Link copied to clipboard
val message: String

A human-readable error message.

Link copied to clipboard
val status: String

The status string (e.g., "RESOURCE_EXHAUSTED").