Table of Contents

Class GatewayException

Namespace
FoundationaLLM.Common.Exceptions
Assembly
FoundationaLLM.Common.dll

Represents an error generated by the FoundationaLLM Gateway.

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

Constructors

GatewayException()

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

public GatewayException()

GatewayException(string?, Exception?, int)

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

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

GatewayException(string?, int)

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

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

Parameters

message string

A string that describes the error.

statusCode int

The HTTP status code associated with the exception.