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:
2025-12-01 12:51:54 +01:00
parent a2ebbe83cb
commit e62dfbcc7a
2 changed files with 14 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
namespace ReC.Application.Common.Exceptions;
public class DataIntegrityException : Exception
{
public DataIntegrityException() { }
public DataIntegrityException(string message) : base(message) { }
}