Table of Contents

Class StateException

Namespace
FoundationaLLM.State.Exceptions
Assembly
FoundationaLLM.State.dll

Represents an error generated by the FoundationaLLM State service.

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

Constructors

StateException()

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

public StateException()

StateException(string?, Exception?, int)

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

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

StateException(string?, int)

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

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

Parameters

message string

A string that describes the error.

statusCode int

The HTTP status code associated with the exception.