#region ========================================================================= USING =====================================================================================
using Lumina.Presentation.Web.Common.Enums.Primitives;
#endregion
namespace Lumina.Presentation.Web.Common.Primitives;
///
/// Error representing that the required resource is currently unavailable.
///
/// The error code that uniquely identifies this error type.
/// The human-readable description of the error.
public record ResourceUnavailableError(string Code, string Description) : Error
{
///
/// Gets the type of this error.
///
public override ErrorType Type => ErrorType.Unexpected;
///
/// 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;
}