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
messagestringThe 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
messagestringThe exception message.
statusGoogleRpcStatusThe 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
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe 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; }