Refactor InsertObjectFailedException constructors

Refactored InsertObjectFailedException to use explicit constructors: parameterless, message-only, and message with inner exception. Removed constructors with optional parameters for clearer and more standard .NET exception handling.
This commit is contained in:
2026-01-12 16:21:16 +01:00
parent 12d17e0808
commit b48ebd8e88

View File

@@ -2,11 +2,15 @@ namespace ReC.Application.Common.Exceptions;
public class InsertObjectFailedException : Exception
{
public InsertObjectFailedException(string? message = null) : base(message)
public InsertObjectFailedException() : base()
{
}
public InsertObjectFailedException(string? message = null, Exception? innerException = null) : base(message, innerException)
public InsertObjectFailedException(string? message) : base(message)
{
}
public InsertObjectFailedException(string? message, Exception? innerException) : base(message, innerException)
{
}
}