#region ========================================================================= USING ===================================================================================== using Lumina.Domain.Common.Primitives; #endregion namespace Lumina.Domain.Common.Errors; /// /// Media Library error types. /// public static partial class Errors { /// /// Groups the errors that report media library rule violations and missing libraries. /// public static class Library { /// /// Gets the error that reports that a locked media library cannot be scanned. /// public static Error CannotScanLockedLibrary => Error.Forbidden(description: nameof(CannotScanLockedLibrary)); /// /// Gets the error that reports that a disabled media library cannot be scanned. /// public static Error CannotScanDisabledLibrary => Error.Forbidden(description: nameof(CannotScanDisabledLibrary)); /// /// Gets the error that reports that the library identifier cannot be empty. /// public static Error LibraryIdCannotBeEmpty => Error.Validation(description: nameof(LibraryIdCannotBeEmpty)); /// /// Gets the error that reports that a library-scoped filter must include a library identifier. /// public static Error FilterMustIncludeLibraryId => Error.Validation(description: nameof(FilterMustIncludeLibraryId)); /// /// Gets the error that reports that the alphabetical filter key is not valid. /// public static Error InvalidFilterAlphaKey => Error.Validation(description: nameof(InvalidFilterAlphaKey)); /// /// Gets the error that reports that a media library with the same identifier already exists. /// public static Error LibraryAlreadyExists => Error.Conflict(description: nameof(LibraryAlreadyExists)); /// /// Gets the error that reports that the requested media library was not found. /// public static Error LibraryNotFound => Error.NotFound(description: nameof(LibraryNotFound)); /// /// Gets the error that reports that the library type must not be . /// public static Error LibraryTypeCannotBeNull => Error.Validation(description: nameof(LibraryTypeCannotBeNull)); /// /// Gets the error that reports that the library cover file must be an image. /// public static Error CoverFileMustBeAnImage => Error.Validation(description: nameof(CoverFileMustBeAnImage)); /// /// Gets the error that reports that the operation cannot be performed because the library type is not recognized. /// public static Error UnknownLibraryType => Error.Forbidden(description: nameof(UnknownLibraryType)); /// /// Gets the error that reports that the list of library content paths must not be . /// public static Error PathsListCannotBeNull => Error.Validation(description: nameof(PathsListCannotBeNull)); /// /// Gets the error that reports that the list of library content paths cannot be empty. /// public static Error PathsListCannotBeEmpty => Error.Validation(description: nameof(PathsListCannotBeEmpty)); /// /// Gets the error that reports that the library title cannot be empty. /// public static Error TitleCannotBeEmpty => Error.Validation(description: nameof(TitleCannotBeEmpty)); /// /// Gets the error that reports that the library title exceeds the maximum length of 255 characters. /// public static Error TitleMustBeMaximum255CharactersLong => Error.Validation(description: nameof(TitleMustBeMaximum255CharactersLong)); /// /// Gets the error that reports that a literal part of the path template cannot be empty. /// public static Error PathTemplateLiteralCannotBeEmpty => Error.Validation(description: nameof(PathTemplateLiteralCannotBeEmpty)); /// /// Gets the error that reports that a value part of the path template must contain exactly one placeholder. /// public static Error PathTemplateValuePartMustContainSinglePlaceholder => Error.Validation(description: nameof(PathTemplateValuePartMustContainSinglePlaceholder)); /// /// Gets the error that reports that a path template part kind is not supported for the library type. /// public static Error PathTemplatePartKindNotSupportedForLibraryType => Error.Validation(description: nameof(PathTemplatePartKindNotSupportedForLibraryType)); /// /// Gets the error that reports that path templates are not supported for the library type. /// public static Error PathTemplateIsNotSupportedForLibraryType => Error.Validation(description: nameof(PathTemplateIsNotSupportedForLibraryType)); /// /// Gets the error that reports that the completion threshold percentage must be omitted when progress tracking is disabled. /// public static Error CompletionThresholdPercentageMustBeNullWhenProgressTrackingIsOff => Error.Validation(description: nameof(CompletionThresholdPercentageMustBeNullWhenProgressTrackingIsOff)); /// /// Gets the error that reports that the completion threshold percentage must be between 0 and 100. /// public static Error CompletionThresholdPercentageMustBeBetweenZeroAndOneHundred => Error.Validation(description: nameof(CompletionThresholdPercentageMustBeBetweenZeroAndOneHundred)); } }