mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Replaces ErrorOr library with a custom implementation.
This commit is contained in:
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 timed out before completion.
|
||||
/// </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 TimeoutError(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;
|
||||
}
|
||||
Reference in new issue
Block a user