ApiException Constructor

Represents an exception that occurs when a platform-specific API operation fails.

Definition

Namespace: GenerativeAI.Exceptions
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public ApiException(
	int errorCode,
	string errorMessage,
	string errorStatus
)

Parameters

errorCode  Int32

[Missing <param name="errorCode"/> documentation for "M:GenerativeAI.Exceptions.ApiException.#ctor(System.Int32,System.String,System.String)"]

errorMessage  String

[Missing <param name="errorMessage"/> documentation for "M:GenerativeAI.Exceptions.ApiException.#ctor(System.Int32,System.String,System.String)"]

errorStatus  String

[Missing <param name="errorStatus"/> documentation for "M:GenerativeAI.Exceptions.ApiException.#ctor(System.Int32,System.String,System.String)"]

Remarks

This exception includes additional details such as the error code, error message, and error status associated with the API failure.

See Also