Class DataPipelineServiceException
- Namespace
- FoundationaLLM.DataPipelineEngine.Exceptions
- Assembly
- FoundationaLLM.DataPipelineEngine.dll
Represents an exception that occurs when a service error occurs in the Context API.
public class DataPipelineServiceException : HttpStatusCodeException, ISerializable
- Inheritance
-
DataPipelineServiceException
- Implements
- Inherited Members
- Extension Methods
Constructors
DataPipelineServiceException()
Initializes a new instance of the DataPipelineServiceException class with a default message.
public DataPipelineServiceException()
DataPipelineServiceException(string?, Exception?, int)
Initializes a new instance of the DataPipelineServiceException class with its message set to message
.
public DataPipelineServiceException(string? message, Exception? innerException, int statusCode = 500)
Parameters
message
stringA string that describes the error.
innerException
ExceptionThe exception that is the cause of the current exception.
statusCode
intThe HTTP status code associated with the exception.
DataPipelineServiceException(string?, int)
Initializes a new instance of the DataPipelineServiceException class with its message set to message
.
public DataPipelineServiceException(string? message, int statusCode = 500)
Parameters
message
stringA string that describes the error.
statusCode
intThe HTTP status code associated with the exception.
Methods
ThrowIfNullOrWhiteSpace(string?, string?)
Throws an exception if argument
is null, empty, or consists only of white-space characters.
public static void ThrowIfNullOrWhiteSpace(string? argument, string? paramName = null)
Parameters
argument
stringThe string argument to validate.
paramName
stringThe name of the parameter with which
argument
corresponds.
Exceptions
- DataPipelineServiceException
argument
is empty or consists only of white-space characters.