Table of Contents

Class CoreServiceException

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

Represents an error with accessing content.

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

Constructors

CoreServiceException()

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

public CoreServiceException()

CoreServiceException(string?, Exception?, int)

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

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

CoreServiceException(string?, int)

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

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

Parameters

message string

A string that describes the error.

statusCode int

The HTTP status code associated with the exception.