Table of Contents

Class GeminiRequestException

Thrown if a Gemini API request fails.

public class GeminiRequestException : Exception
Inheritance
GeminiRequestException
Extension Methods

Constructors

GeminiRequestException(UnityWebRequest)

Creates a new GeminiRequestException.

internal GeminiRequestException(UnityWebRequest webRequest)

Parameters

webRequest UnityWebRequest

The request that caused the exception.

Fields

IsBetaApi

Was the request on a beta API?

public bool IsBetaApi

Field Value

bool

RequestEndpoint

The endpoint of the failed request.

public Uri RequestEndpoint

Field Value

Uri

RequestError

The name of the request's error.

public string RequestError

Field Value

string

RequestErrorCode

The response code returned by the request.

public long RequestErrorCode

Field Value

long

RequestErrorMessage

The request's error message.

public string RequestErrorMessage

Field Value

string