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.
This commit is contained in:
2026-03-25 09:56:58 +01:00
parent 82ae4c5957
commit fec125b0d5

View File

@@ -161,7 +161,7 @@ public class InvokeRecActionViewCommandHandler(
}, cancel); }, cancel);
if (action.ErrorAction == ErrorAction.Stop) if (action.ErrorAction == ErrorAction.Stop)
throw; throw new RecActionException(action.Id, action.ProfileId, ex);
} }
finally finally
{ {