From 82ae4c59575bc6eba0ae2ceb4fb86183a26886f5 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 25 Mar 2026 09:55:52 +0100 Subject: [PATCH] Add RecActionException custom exception class Introduced RecActionException in ReC.Application.Common.Exceptions to encapsulate errors related to rec actions, including actionId, optional profileId, and inner exception details in the error message. --- src/ReC.Application/Common/Exceptions/RecActionException.cs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/ReC.Application/Common/Exceptions/RecActionException.cs diff --git a/src/ReC.Application/Common/Exceptions/RecActionException.cs b/src/ReC.Application/Common/Exceptions/RecActionException.cs new file mode 100644 index 0000000..c1fb659 --- /dev/null +++ b/src/ReC.Application/Common/Exceptions/RecActionException.cs @@ -0,0 +1,4 @@ +namespace ReC.Application.Common.Exceptions; + +public class RecActionException(long actionId, long? profileId, Exception innerException) + : Exception($"Rec action failed. ActionId: {actionId}, ProfileId: {profileId}", innerException); \ No newline at end of file