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
messagestringA string that describes the error.
innerExceptionExceptionThe exception that is the cause of the current exception.
statusCodeintThe 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)