Introduce a new `DataIntegrityException` class to handle data integrity issues. Replace the logging and early return for `null` `RestType` in `InvokeRecActionCommandHandler` with throwing the new exception. This ensures explicit error handling and improves runtime issue detection.
8 lines
211 B
C#
8 lines
211 B
C#
namespace ReC.Application.Common.Exceptions;
|
|
|
|
public class DataIntegrityException : Exception
|
|
{
|
|
public DataIntegrityException() { }
|
|
|
|
public DataIntegrityException(string message) : base(message) { }
|
|
} |