#region ========================================================================= USING ===================================================================================== using Lumina.Domain.SharedKernel.Common.Enums.Primitives; #endregion namespace Lumina.Domain.Common.Primitives; /// /// Error representing that the operation could not be completed due to a conflict with the current state. /// /// The error code that uniquely identifies this error type. /// The human-readable description of the error. public record ConflictError(string Code, string Description) : Error { /// /// Gets the type of this error. /// public override ErrorType Type => ErrorType.Conflict; /// /// Gets the error code that uniquely identifies this error type. /// public override string Code { get; } = Code; /// /// Gets the human-readable description of the error. /// public override string Description { get; } = Description; }