mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Moves enums and errors to a shared kernel.
This commit is contained in:
1 parent
95be37602a
commit
76b9596a27
266 files changed
+393
-304
No files matched your search
@@ -1,18 +0,0 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Users error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class Users
|
||||
{
|
||||
public static Error UserAlreadyExists => Error.Conflict(description: nameof(UserAlreadyExists));
|
||||
public static Error UserDoesNotExist => Error.NotFound(description: nameof(UserDoesNotExist));
|
||||
public static Error UserIdCannotBeEmpty => Error.Validation(description: nameof(UserIdCannotBeEmpty));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user