Example #1
0
 static void Main(string[] args)
 {
     try
     {
         var app = new SharpDocApp();
         app.ParseArguments(args);
         app.Run();
     } catch (Exception ex)
     {
         Logger.Fatal("Unexpected exception", ex);
     }
 }
Example #2
0
 static void Main(string[] args)
 {
     try
     {
         var app = new SharpDocApp();
         app.ParseArguments(args);
         app.Run();
     } catch (Exception ex)
     {
         Logger.Fatal("Unexpected exception", ex);
     }
 }
Example #3
0
 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;
 }
Example #4
0
        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);
        }