Table of Contents

Class ServerError

Namespace
Google.GenAI
Assembly
Google.GenAI.dll

Represents a server error (5xx HTTP status codes) from the API.

public class ServerError : HttpRequestException, ISerializable
Inheritance
ServerError
Implements
Inherited Members

Constructors

ServerError(string)

public ServerError(string message)

Parameters

message string

ServerError(string, Exception)

public ServerError(string message, Exception innerException)

Parameters

message string
innerException Exception

ServerError(string, int, string?)

public ServerError(string message, int statusCode, string? status = null)

Parameters

message string
statusCode int
status string

ServerError(string, int, string?, Exception)

public ServerError(string message, int statusCode, string? status, Exception innerException)

Parameters

message string
statusCode int
status string
innerException Exception

Properties

Status

public string? Status { get; }

Property Value

string

StatusCode

public int StatusCode { get; }

Property Value

int