mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 20:01:10 +00:00
29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
#region ========================================================================= USING =====================================================================================
|
|
using Lumina.Presentation.Web.Common.Enums.Primitives;
|
|
#endregion
|
|
|
|
namespace Lumina.Presentation.Web.Common.Primitives;
|
|
|
|
/// <summary>
|
|
/// Error representing that the required resource is currently unavailable.
|
|
/// </summary>
|
|
/// <param name="Code">The error code that uniquely identifies this error type.</param>
|
|
/// <param name="Description">The human-readable description of the error.</param>
|
|
public record ResourceUnavailableError(string Code, string Description) : Error
|
|
{
|
|
/// <summary>
|
|
/// Gets the type of this error.
|
|
/// </summary>
|
|
public override ErrorType Type => ErrorType.Unexpected;
|
|
|
|
/// <summary>
|
|
/// Gets the error code that uniquely identifies this error type.
|
|
/// </summary>
|
|
public override string Code { get; } = Code;
|
|
|
|
/// <summary>
|
|
/// Gets the human-readable description of the error.
|
|
/// </summary>
|
|
public override string Description { get; } = Description;
|
|
}
|