mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
eliminates region sections
This commit is contained in:
1 parent
705c02b90d
commit
405fc1ff9a
370 files changed
+47
-1618
No files matched your search
@@ -11,7 +11,6 @@ public static partial class Errors
|
||||
{
|
||||
public static class FileManagement
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
public static Error ParentNodeCannotBeNull => Error.Failure(nameof(ParentNodeCannotBeNull));
|
||||
public static Error FileCopyError => Error.Failure(nameof(FileCopyError));
|
||||
public static Error FileMoveError => Error.Failure(nameof(FileMoveError));
|
||||
@@ -29,6 +28,5 @@ public static partial class Errors
|
||||
public static Error FileAlreadyExists => Error.Conflict(nameof(FileAlreadyExists));
|
||||
public static Error DirectoryNotFound => Error.NotFound(nameof(DirectoryNotFound));
|
||||
public static Error DirectoryAlreadyExists => Error.Conflict(nameof(DirectoryAlreadyExists));
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10,9 +10,7 @@ namespace Lumina.Domain.Common.Errors;
|
||||
public static partial class Errors
|
||||
{
|
||||
public static class MediaContributor
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
|
||||
{
|
||||
public static Error ContributorsListCannotBeNull => Error.Validation(nameof(ContributorsListCannotBeNull));
|
||||
public static Error ContributorNameCannotBeEmpty => Error.Validation(nameof(ContributorNameCannotBeEmpty));
|
||||
public static Error ContributorDisplayNameCannotBeEmpty => Error.Validation(nameof(ContributorDisplayNameCannotBeEmpty));
|
||||
@@ -23,6 +21,5 @@ public static partial class Errors
|
||||
public static Error RoleCategoryCannotBeEmpty => Error.Validation(nameof(RoleCategoryCannotBeEmpty));
|
||||
public static Error RoleCategoryMustBeMaximum50CharactersLong => Error.Validation(nameof(RoleCategoryMustBeMaximum50CharactersLong));
|
||||
public static Error ContributorRoleCannotBeNull => Error.Validation(nameof(ContributorRoleCannotBeNull));
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,6 @@ public static partial class Errors
|
||||
{
|
||||
public static class Metadata
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
public static Error MetadataCannotBeNull => Error.Validation(nameof(MetadataCannotBeNull));
|
||||
public static Error TitleCannotBeEmpty => Error.Validation(nameof(TitleCannotBeEmpty));
|
||||
public static Error TitleMustBeMaximum255CharactersLong => Error.Validation(nameof(TitleMustBeMaximum255CharactersLong));
|
||||
@@ -43,6 +42,5 @@ public static partial class Errors
|
||||
public static Error RatingVoteCountMustBePositive => Error.Validation(nameof(RatingVoteCountMustBePositive));
|
||||
public static Error RatingsListCannotBeNull => Error.Validation(nameof(RatingsListCannotBeNull));
|
||||
public static Error InvalidIsoCode => Error.Validation(nameof(InvalidIsoCode));
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using ErrorOr;
|
||||
#endregion
|
||||
|
||||
@@ -11,8 +11,6 @@ public static partial class Errors
|
||||
{
|
||||
public static class Permission
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
public static Error UnauthorizedAccess => Error.Failure(nameof(UnauthorizedAccess));
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,9 +11,7 @@ public static partial class Errors
|
||||
{
|
||||
public static class Thumbnails
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
public static Error NoThumbnail => Error.Failure(nameof(NoThumbnail));
|
||||
public static Error ImageQaulityMustBeBetweenZeroAndOneHundred => Error.Validation(nameof(ImageQaulityMustBeBetweenZeroAndOneHundred));
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,6 @@ public static partial class Errors
|
||||
{
|
||||
public static class WrittenContent
|
||||
{
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
public static Error BookAlreadyExists => Error.Conflict(nameof(BookAlreadyExists));
|
||||
public static Error IsbnValueCannotBeEmpty => Error.Validation(nameof(IsbnValueCannotBeEmpty));
|
||||
public static Error IsbnListCannotBeNull => Error.Validation(nameof(IsbnListCannotBeNull));
|
||||
@@ -36,6 +35,5 @@ public static partial class Errors
|
||||
public static Error UnknownBookFormat => Error.Validation(nameof(UnknownBookFormat));
|
||||
public static Error EditionMustBeMaximum50CharactersLong => Error.Validation(nameof(EditionMustBeMaximum50CharactersLong));
|
||||
public static Error VolumeNumberMustBeGreaterThanZero => Error.Validation(nameof(VolumeNumberMustBeGreaterThanZero));
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user