mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
Adds File System Domain aggregate
This commit is contained in:
1 parent
4301b0a3ee
commit
dfc7112cb7
51 files changed
+3626
-95
No files matched your search
@@ -12,11 +12,22 @@ public static partial class Errors
|
||||
public static class FileManagement
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
public static Error FileCopyError => Error.Failure(nameof(FileCopyError));
|
||||
public static Error FileMoveError => Error.Failure(nameof(FileMoveError));
|
||||
public static Error DirectoryCopyError => Error.Failure(nameof(DirectoryCopyError));
|
||||
public static Error DirectoryMoveError => Error.Failure(nameof(DirectoryMoveError));
|
||||
public static Error FileNotFoundError => Error.NotFound(nameof(FileNotFoundError));
|
||||
public static Error InvalidPathError => Error.Validation(nameof(InvalidPathError));
|
||||
public static Error PathCannotBeEmpty => Error.Validation(nameof(PathCannotBeEmpty));
|
||||
public static Error ExtensionCannotBeEmpty => Error.Validation(nameof(ExtensionCannotBeEmpty));
|
||||
public static Error StreamIdCannotBeEmpty => Error.Validation(nameof(StreamIdCannotBeEmpty));
|
||||
public static Error CodecCannotBeEmpty => Error.Validation(nameof(CodecCannotBeEmpty));
|
||||
public static Error BitrateMustBeAPositiveNumber => Error.Validation(nameof(BitrateMustBeAPositiveNumber));
|
||||
public static Error CannotNavigateUpError => Error.Failure(nameof(CannotNavigateUpError));
|
||||
public static Error NameCannotBeEmptyError => Error.Validation(nameof(NameCannotBeEmptyError));
|
||||
public static Error FileAlreadyExistsError => Error.Conflict(nameof(FileAlreadyExistsError));
|
||||
public static Error DirectoryNotFoundError => Error.NotFound(nameof(DirectoryNotFoundError));
|
||||
public static Error DirectoryAlreadyExistsError => Error.Conflict(nameof(DirectoryAlreadyExistsError));
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Domain permission related error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class Permission
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
public static Error UnauthorizedAccess => Error.Failure(nameof(UnauthorizedAccess));
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Domain.Common.Errors;
|
||||
|
||||
/// <summary>
|
||||
/// Domain thumbnails related error types.
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class Thumbnails
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
public static Error NoThumbnail => Error.Failure(nameof(NoThumbnail));
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user