private static int ExecuteOption(AbstractOptions options) { try { options.Execute(); return(0); } catch (OperationFailedGracefully) { Console.WriteLine("Operation failed."); //nothing to do — failed gracefully already. return(-1); } }
private static int ExecuteOption(AbstractOptions options) { try { options.Execute(); return 0; } catch (OperationFailedGracefully) { Console.WriteLine("Operation failed."); //nothing to do — failed gracefully already. return -1; } }