static void Main(string[] args) { try { var app = new SharpDocApp(); app.ParseArguments(args); app.Run(); } catch (Exception ex) { Logger.Fatal("Unexpected exception", ex); } }
static int Main(string[] args) { int resultCode = 0; try { var app = new SharpDocApp(); app.ParseArguments(args); app.Run(); } catch (FatalException) { resultCode = 1; } catch (Exception ex) { Logger.Error("Unexpected exception", ex); resultCode = 1; } return resultCode; }
static int Main(string[] args) { int resultCode = 0; try { var app = new SharpDocApp(); app.ParseArguments(args); app.Run(); } catch (FatalException) { resultCode = 1; } catch (Exception ex) { Logger.Error("Unexpected exception", ex); resultCode = 1; } return(resultCode); }