From 405b5f3ab1d2fcc8af23dc266065f687a0b319bb Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 25 Mar 2026 10:17:24 +0100 Subject: [PATCH] Add ActionId and ProfileId properties to RecActionException Expose ActionId and ProfileId as public properties in the RecActionException class, allowing external access to these values from exception instances. Refactored the constructor to use a block body. --- .../Common/Exceptions/RecActionException.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ReC.Application/Common/Exceptions/RecActionException.cs b/src/ReC.Application/Common/Exceptions/RecActionException.cs index c1fb659..b42aa65 100644 --- a/src/ReC.Application/Common/Exceptions/RecActionException.cs +++ b/src/ReC.Application/Common/Exceptions/RecActionException.cs @@ -1,4 +1,9 @@ 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 + : Exception($"Rec action failed. ActionId: {actionId}, ProfileId: {profileId}", innerException) +{ + public long ActionId { get; } = actionId; + + public long? ProfileId { get; } = profileId; +} \ No newline at end of file