コード例 #1
0
 static Bootstrapper()
 {
     try
     {
         CoffeeHandler = new CoffeeHandler();
         SassHandler = new SassHandler();
     }
     catch (Exception ex)
     {
         var message = string.Format("There were errors Loading Sass and Coffee Handlers");
         var wrappedException = new ApplicationException(message, ex);
         if (Registry.CaptureErrorAction != null)
             Registry.CaptureErrorAction(wrappedException);
     }
 }
コード例 #2
0
 static Bootstrapper()
 {
     try
     {
         CoffeeHandler = new CoffeeHandler();
         SassHandler   = new SassHandler();
     }
     catch (Exception ex)
     {
         var message          = string.Format("There were errors Loading Sass and Coffee Handlers");
         var wrappedException = new ApplicationException(message, ex);
         if (Registry.CaptureErrorAction != null)
         {
             Registry.CaptureErrorAction(wrappedException);
         }
     }
 }