From fec125b0d5ba07bf791971347b188c4887ed72e2 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 25 Mar 2026 09:56:58 +0100 Subject: [PATCH] Improve exception context in action error handling Updated InvokeRecActionViewCommandHandler to throw a RecActionException with action Id and ProfileId when an error occurs and ErrorAction is set to Stop. This change enhances error traceability by providing more contextual information in exceptions. --- .../RecActions/Commands/InvokeRecActionViewCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs index ace9b70..91afb85 100644 --- a/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs +++ b/src/ReC.Application/RecActions/Commands/InvokeRecActionViewCommand.cs @@ -161,7 +161,7 @@ public class InvokeRecActionViewCommandHandler( }, cancel); if (action.ErrorAction == ErrorAction.Stop) - throw; + throw new RecActionException(action.Id, action.ProfileId, ex); } finally {