private static void ExecAction(MyAction action) { try { action.Action(); } catch (Exception) { // action.Exception = e; } }