public void execute() { Finish_EventArgs ev = new Finish_EventArgs(); try { try { run(); } catch (Exception ex) { ev = on_error(ex); } finally { //Finish(this, ev); messenger.send("item_finished", this, ev); } } catch (Exception ex) { Feedback.print(ex); } }
protected virtual Finish_EventArgs on_error(Exception ex) { //Feedback.print(input); Feedback.print(ex); //status = Operation_Status.Failure; Finish_EventArgs ev = new Finish_EventArgs(); ev.success = false; //ev.errorMessage = "Error with item # " + index.ToString() + ""; return(ev); }