Add InsertObjectFailedException custom exception class
Introduced InsertObjectFailedException in the ReC.Application.Common.Exceptions namespace. This exception provides constructors for custom messages and inner exceptions, and is intended to signal failures during object insertion operations.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace ReC.Application.Common.Exceptions;
|
||||
|
||||
public class InsertObjectFailedException : Exception
|
||||
{
|
||||
public InsertObjectFailedException(string? message = null) : base(message)
|
||||
{
|
||||
}
|
||||
|
||||
public InsertObjectFailedException(string? message = null, Exception? innerException = null) : base(message, innerException)
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user