public static void Raise(StorageEnvironmentOptions options, string message) { try { throw new VoronUnrecoverableErrorException(message); } catch (Exception e) { options.SetCatastrophicFailure(ExceptionDispatchInfo.Capture(e)); throw; } }
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; } }