Table of Contents

Class VertexAIException

Namespace
GenerativeAI.Exceptions
Assembly
GenerativeAI.dll

Represents an exception that is thrown when a long-running operation fails or encounters an error.

public class VertexAIException : Exception, ISerializable
Inheritance
VertexAIException
Implements
Inherited Members
Extension Methods

Remarks

This exception provides access to detailed status information about the error, encapsulated in the GoogleRpcStatus object. It is used to relay error information related to an operation executed within the generative AI engine or related systems.

Constructors

VertexAIException()

Initializes a new instance of the VertexAIException class.

public VertexAIException()

VertexAIException(string)

Initializes a new instance of the VertexAIException class with a specified error message.

public VertexAIException(string message)

Parameters

message string

The error message that explains the reason for the exception.

VertexAIException(string, GoogleRpcStatus)

Initializes a new instance of the VertexAIException class.

public VertexAIException(string message, GoogleRpcStatus status)

Parameters

message string

The exception message.

status GoogleRpcStatus

The detailed RPC status information.

VertexAIException(string, Exception)

Initializes a new instance of the VertexAIException class with a specified error message and inner exception.

public VertexAIException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception.

Properties

Status

Gets or sets the detailed RPC status information about the error.

public GoogleRpcStatus Status { get; set; }

Property Value

GoogleRpcStatus