#region ========================================================================= USING ===================================================================================== using Lumina.Domain.Common.Primitives; #endregion namespace Lumina.Domain.Common.Errors; /// /// Theme error types. /// public static partial class Errors { /// /// Groups the errors that report theme rule violations and theme file failures. /// public static class Themes { /// /// Gets the error that reports that the requested theme was not found. /// public static Error ThemeNotFound => Error.NotFound(description: nameof(ThemeNotFound)); /// /// Gets the error that reports that the theme identifier cannot be empty. /// public static Error ThemeIdCannotBeEmpty => Error.Validation(description: nameof(ThemeIdCannotBeEmpty)); /// /// Gets the error that reports that the theme page key cannot be empty. /// public static Error PageKeyCannotBeEmpty => Error.Validation(description: nameof(PageKeyCannotBeEmpty)); /// /// Gets the error that reports that the theme asset path cannot be empty. /// public static Error ThemeAssetPathCannotBeEmpty => Error.Validation(description: nameof(ThemeAssetPathCannotBeEmpty)); /// /// Gets the error that reports that the theme archive must not be . /// public static Error ThemeArchiveCannotBeNull => Error.Validation(description: nameof(ThemeArchiveCannotBeNull)); /// /// Gets the error that reports that the last bundled theme cannot be deleted. /// public static Error LastBundledThemeCannotBeDeleted => Error.Forbidden(description: nameof(LastBundledThemeCannotBeDeleted)); /// /// Gets the error that reports that the theme cannot be deleted. /// public static Error ThemeCannotBeDeleted => Error.Forbidden(description: nameof(ThemeCannotBeDeleted)); /// /// Gets the error that reports that the theme cannot be restored. /// public static Error ThemeCannotBeRestored => Error.Forbidden(description: nameof(ThemeCannotBeRestored)); /// /// Gets the error that reports that the theme archive could not be read. /// public static Error ThemeArchiveNotReadable => Error.Failure(description: nameof(ThemeArchiveNotReadable)); /// /// Gets the error that reports that the files of the theme could not be read. /// public static Error ThemeFilesUnreadable => Error.Failure(description: nameof(ThemeFilesUnreadable)); /// /// Gets the error that reports that the requested theme template was not found. /// public static Error ThemeTemplateNotFound => Error.NotFound(description: nameof(ThemeTemplateNotFound)); /// /// Gets the error that reports that the theme is not available for the requested page. /// public static Error ThemeNotAvailable => Error.Failure(description: nameof(ThemeNotAvailable)); } }