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:
@@ -2,11 +2,15 @@ namespace ReC.Application.Common.Exceptions;
|
|||||||
|
|
||||||
public class InsertObjectFailedException : Exception
|
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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user