// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma warning disable 0162
using System;
using System.Threading.Tasks;
namespace FASTER.core
{
///
/// Exception thrown when commit fails
///
public class CommitFailureException : Exception
{
///
/// Commit info and next commit task in chain
///
public LinkedCommitInfo LinkedCommitInfo { get; private set; }
internal CommitFailureException(LinkedCommitInfo linkedCommitInfo, string message)
: base(message)
=> LinkedCommitInfo = linkedCommitInfo;
}
}