public void RunLogic5() { string dllfile; try { Console.WriteLine("Enter 'string' type dll file name"); dllfile = StringParser(); Logics.Logic5(dllfile); } catch (FileNotFoundException e) { Console.WriteLine("Assembly file not found" + e.Message.ToString()); throw; } catch (FileLoadException e) { Console.WriteLine("Couldnt Load the file" + e.Message.ToString()); throw; } }
public void RunLogic5() { string dllfile; Console.WriteLine("Enter dll file : "); while (string.IsNullOrEmpty(dllfile = Console.ReadLine())) { throw new ScubaException(String.Format("Enter Valid string"), StudentNum); } try { Logics.Logic5(dllfile); } catch (FileNotFoundException e) { Console.WriteLine("Assembly file not found" + e.Message.ToString()); throw; } catch (FileLoadException e) { Console.WriteLine("Couldnt Load the file" + e.Message.ToString()); throw; } }