Replaces ErrorOr library with a custom implementation.

This commit is contained in:
BinaryAlley committed 2026-08-14 03:04:28 -07:00
1 parent 8fe90a4dde
commit 3b772d68ca
436 files changed
+4234 -3922

No files matched your search

@@ -1,10 +1,28 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Domain.SharedKernel.Common.Enums.Primitives;
#endregion
namespace Lumina.Domain.Common.Primitives;
/// <summary>
/// Error representing that the operation could not be completed due to a conflict with the current state.
/// </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 ConflictError(string Code, string Description) : Error
{
/// <summary>
/// Gets the type of this error.
/// </summary>
public override ErrorType Type => ErrorType.Conflict;
/// <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;
}