Improve error handling with DataIntegrityException
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.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace ReC.Application.Common.Exceptions;
|
||||
|
||||
public class DataIntegrityException : Exception
|
||||
{
|
||||
public DataIntegrityException() { }
|
||||
|
||||
public DataIntegrityException(string message) : base(message) { }
|
||||
}
|
||||
Reference in New Issue
Block a user