public static void Raise(StorageEnvironmentOptions options, string message)
 {
     try
     {
         throw new VoronUnrecoverableErrorException(message);
     }
     catch (Exception e)
     {
         options.SetCatastrophicFailure(ExceptionDispatchInfo.Capture(e));
         throw;
     }
 }
Пример #2
0
 public static void Raise(StorageEnvironmentOptions options, string message, Exception inner)
 {
     try
     {
         throw new VoronUnrecoverableErrorException(message
                                                    + Environment.NewLine + " @ " + options.DataPager.FileName.FullPath, inner);
     }
     catch (Exception e)
     {
         options.SetCatastrophicFailure(ExceptionDispatchInfo.Capture(e));
         throw;
     }
 }