namespace ErsatzTV.Core.Errors;

/// <summary>
///     A <see cref="BaseError" /> raised when an optimistic-concurrency precondition fails — the
///     caller's <c>If-Match</c> version no longer matches the stored aggregate <c>Version</c>
///     (issue #253). REST endpoints map this to HTTP 412 Precondition Failed; it is distinct from
///     the 409 Conflict raised when a mutation races a background build lock (api-conventions §3a).
/// </summary>
public class PreconditionFailedError : BaseError
{
    public PreconditionFailedError(string value) : base(value)
    {
    }
}
