Table of Contents

Class SemanticKernelException

Namespace
FoundationaLLM.SemanticKernel.Core.Exceptions
Assembly
FoundationaLLM.SemanticKernel.Core.dll

Represents an error generated by the Semantic Kernel service.

public class SemanticKernelException : HttpStatusCodeException, ISerializable
Inheritance
SemanticKernelException
Implements
Inherited Members
Extension Methods

Constructors

SemanticKernelException()

Initializes a new instance of the SemanticKernelException class with a default message.

public SemanticKernelException()

SemanticKernelException(string?, Exception?, int)

Initializes a new instance of the SemanticKernelException class with its message set to message.

public SemanticKernelException(string? message, Exception? innerException, int statusCode = 500)

Parameters

message string

A string that describes the error.

innerException Exception

The exception that is the cause of the current exception.

statusCode int

The HTTP status code associated with the exception.

SemanticKernelException(string?, int)

Initializes a new instance of the SemanticKernelException class with its message set to message.

public SemanticKernelException(string? message, int statusCode = 500)

Parameters

message string

A string that describes the error.

statusCode int

The HTTP status code associated with the exception.