Table of Contents

Class GenerativeAIException

Namespace
GenerativeAI.Exceptions
Assembly
GenerativeAI.dll

Represents an exception specific to errors encountered within Generative AI operations.

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

Examples

Example usage scenarios include handling service-specific errors or internal processing failures related to Generative AI.

Remarks

This exception is typically thrown when an error occurs during the usage of Generative AI-based systems or processes.

Constructors

GenerativeAIException()

Initializes a new instance of the GenerativeAIException class.

public GenerativeAIException()

GenerativeAIException(string)

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

public GenerativeAIException(string message)

Parameters

message string

The error message that explains the reason for the exception.

GenerativeAIException(string, Exception)

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

public GenerativeAIException(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.

GenerativeAIException(string, string)

Represents an exception that occurs during operations related to Generative AI.

public GenerativeAIException(string message, string details)

Parameters

message string
details string

Remarks

This exception is intended to capture errors specific to Generative AI operations, providing additional details about the context of the error for debugging or logging purposes.

Properties

Details

Gets detailed information about the error encountered during Generative AI operations.

public string Details { get; }

Property Value

string

Remarks

This property provides a description or context-specific details regarding the exception, which can be useful for debugging or understanding the nature of the problem.