mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 15:11:10 +00:00
Enforces XML documentation on public members.
This commit is contained in:
1 parent
0daef2acab
commit
308402ad0e
202 files changed
+3901
-98
No files matched your search
@@ -9,14 +9,44 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report favorite rule violations and missing favorites.
|
||||
/// </summary>
|
||||
public static class Favorites
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested favorite was not found.
|
||||
/// </summary>
|
||||
public static Error FavoriteNotFound => Error.NotFound(description: nameof(FavoriteNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the user already has the media item in favorites.
|
||||
/// </summary>
|
||||
public static Error FavoriteAlreadyExists => Error.Conflict(description: nameof(FavoriteAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the favorite media kind is not a defined value.
|
||||
/// </summary>
|
||||
public static Error FavoriteMediaKindIsInvalid => Error.Validation(description: nameof(FavoriteMediaKindIsInvalid));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the media kind cannot be favorited because no library provides it yet.
|
||||
/// </summary>
|
||||
public static Error FavoriteMediaKindIsNotSupported => Error.Validation(description: nameof(FavoriteMediaKindIsNotSupported));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the media item identifier of the favorite cannot be empty.
|
||||
/// </summary>
|
||||
public static Error FavoriteMediaItemIdCannotBeEmpty => Error.Validation(description: nameof(FavoriteMediaItemIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the list of media item identifiers cannot be empty.
|
||||
/// </summary>
|
||||
public static Error FavoriteMediaItemIdsCannotBeEmpty => Error.Validation(description: nameof(FavoriteMediaItemIdsCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the list of media item identifiers exceeds the maximum allowed count.
|
||||
/// </summary>
|
||||
public static Error FavoriteMediaItemIdsExceedMaximumCount => Error.Validation(description: nameof(FavoriteMediaItemIdsExceedMaximumCount));
|
||||
}
|
||||
}
|
||||
@@ -9,28 +9,114 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report file system navigation, validation and operation failures.
|
||||
/// </summary>
|
||||
public static class FileSystemManagement
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a file system operation failed because its parent node is <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error ParentNodeCannotBeNull => Error.Failure(description: nameof(ParentNodeCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a file system operation failed because the path exceeds the maximum length of 260 characters.
|
||||
/// </summary>
|
||||
public static Error PathMustBeMaximum260CharactersLong => Error.Failure(description: nameof(PathMustBeMaximum260CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that copying a file failed.
|
||||
/// </summary>
|
||||
public static Error FileCopyError => Error.Failure(description: nameof(FileCopyError));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that moving a file failed.
|
||||
/// </summary>
|
||||
public static Error FileMoveError => Error.Failure(description: nameof(FileMoveError));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that deleting a file failed.
|
||||
/// </summary>
|
||||
public static Error FileDeleteError => Error.Failure(description: nameof(FileDeleteError));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that copying a directory failed.
|
||||
/// </summary>
|
||||
public static Error DirectoryCopyError => Error.Failure(description: nameof(DirectoryCopyError));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that moving a directory failed.
|
||||
/// </summary>
|
||||
public static Error DirectoryMoveError => Error.Failure(description: nameof(DirectoryMoveError));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested file was not found.
|
||||
/// </summary>
|
||||
public static Error FileNotFound => Error.NotFound(description: nameof(FileNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the file system path is not valid.
|
||||
/// </summary>
|
||||
public static Error InvalidPath => Error.Validation(description: nameof(InvalidPath));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the file system path cannot be empty.
|
||||
/// </summary>
|
||||
public static Error PathCannotBeEmpty => Error.Validation(description: nameof(PathCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the file extension cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ExtensionCannotBeEmpty => Error.Validation(description: nameof(ExtensionCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the stream identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error StreamIdCannotBeEmpty => Error.Validation(description: nameof(StreamIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the codec name cannot be empty.
|
||||
/// </summary>
|
||||
public static Error CodecCannotBeEmpty => Error.Validation(description: nameof(CodecCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the bitrate must be a positive number.
|
||||
/// </summary>
|
||||
public static Error BitrateMustBeAPositiveNumber => Error.Validation(description: nameof(BitrateMustBeAPositiveNumber));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the file system browser cannot navigate above the root directory.
|
||||
/// </summary>
|
||||
public static Error CannotNavigateUp => Error.Failure(description: nameof(CannotNavigateUp));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of the file system node cannot be empty.
|
||||
/// </summary>
|
||||
public static Error NameCannotBeEmpty => Error.Validation(description: nameof(NameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the file name cannot be empty.
|
||||
/// </summary>
|
||||
public static Error FileNameCannotBeEmpty => Error.Validation(description: nameof(FileNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a file with the same name already exists in the target directory.
|
||||
/// </summary>
|
||||
public static Error FileAlreadyExists => Error.Conflict(description: nameof(FileAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested directory was not found.
|
||||
/// </summary>
|
||||
public static Error DirectoryNotFound => Error.NotFound(description: nameof(DirectoryNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a directory with the same name already exists in the target location.
|
||||
/// </summary>
|
||||
public static Error DirectoryAlreadyExists => Error.Conflict(description: nameof(DirectoryAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the file exceeds the maximum allowed size.
|
||||
/// </summary>
|
||||
public static Error FileTooLarge => Error.Validation(description: nameof(FileTooLarge));
|
||||
}
|
||||
}
|
||||
@@ -9,27 +9,109 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report media library rule violations and missing libraries.
|
||||
/// </summary>
|
||||
public static class Library
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a locked media library cannot be scanned.
|
||||
/// </summary>
|
||||
public static Error CannotScanLockedLibrary => Error.Forbidden(description: nameof(CannotScanLockedLibrary));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a disabled media library cannot be scanned.
|
||||
/// </summary>
|
||||
public static Error CannotScanDisabledLibrary => Error.Forbidden(description: nameof(CannotScanDisabledLibrary));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the library identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error LibraryIdCannotBeEmpty => Error.Validation(description: nameof(LibraryIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a library-scoped filter must include a library identifier.
|
||||
/// </summary>
|
||||
public static Error FilterMustIncludeLibraryId => Error.Validation(description: nameof(FilterMustIncludeLibraryId));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the alphabetical filter key is not valid.
|
||||
/// </summary>
|
||||
public static Error InvalidFilterAlphaKey => Error.Validation(description: nameof(InvalidFilterAlphaKey));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a media library with the same identifier already exists.
|
||||
/// </summary>
|
||||
public static Error LibraryAlreadyExists => Error.Conflict(description: nameof(LibraryAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested media library was not found.
|
||||
/// </summary>
|
||||
public static Error LibraryNotFound => Error.NotFound(description: nameof(LibraryNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the library type must not be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error LibraryTypeCannotBeNull => Error.Validation(description: nameof(LibraryTypeCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the library cover file must be an image.
|
||||
/// </summary>
|
||||
public static Error CoverFileMustBeAnImage => Error.Validation(description: nameof(CoverFileMustBeAnImage));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the operation cannot be performed because the library type is not recognized.
|
||||
/// </summary>
|
||||
public static Error UnknownLibraryType => Error.Forbidden(description: nameof(UnknownLibraryType));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the list of library content paths must not be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error PathsListCannotBeNull => Error.Validation(description: nameof(PathsListCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the list of library content paths cannot be empty.
|
||||
/// </summary>
|
||||
public static Error PathsListCannotBeEmpty => Error.Validation(description: nameof(PathsListCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the library title cannot be empty.
|
||||
/// </summary>
|
||||
public static Error TitleCannotBeEmpty => Error.Validation(description: nameof(TitleCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the library title exceeds the maximum length of 255 characters.
|
||||
/// </summary>
|
||||
public static Error TitleMustBeMaximum255CharactersLong => Error.Validation(description: nameof(TitleMustBeMaximum255CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a literal part of the path template cannot be empty.
|
||||
/// </summary>
|
||||
public static Error PathTemplateLiteralCannotBeEmpty => Error.Validation(description: nameof(PathTemplateLiteralCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a value part of the path template must contain exactly one placeholder.
|
||||
/// </summary>
|
||||
public static Error PathTemplateValuePartMustContainSinglePlaceholder => Error.Validation(description: nameof(PathTemplateValuePartMustContainSinglePlaceholder));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a path template part kind is not supported for the library type.
|
||||
/// </summary>
|
||||
public static Error PathTemplatePartKindNotSupportedForLibraryType => Error.Validation(description: nameof(PathTemplatePartKindNotSupportedForLibraryType));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that path templates are not supported for the library type.
|
||||
/// </summary>
|
||||
public static Error PathTemplateIsNotSupportedForLibraryType => Error.Validation(description: nameof(PathTemplateIsNotSupportedForLibraryType));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the completion threshold percentage must be omitted when progress tracking is disabled.
|
||||
/// </summary>
|
||||
public static Error CompletionThresholdPercentageMustBeNullWhenProgressTrackingIsOff => Error.Validation(description: nameof(CompletionThresholdPercentageMustBeNullWhenProgressTrackingIsOff));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the completion threshold percentage must be between 0 and 100.
|
||||
/// </summary>
|
||||
public static Error CompletionThresholdPercentageMustBeBetweenZeroAndOneHundred => Error.Validation(description: nameof(CompletionThresholdPercentageMustBeBetweenZeroAndOneHundred));
|
||||
}
|
||||
}
|
||||
@@ -9,24 +9,94 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report media library scan rule violations and missing scans.
|
||||
/// </summary>
|
||||
public static class LibraryScanning
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the library scan identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error LibraryScanIdCannotBeEmpty => Error.Validation(description: nameof(LibraryScanIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that only a pending scan can be started.
|
||||
/// </summary>
|
||||
public static Error CanOnlyStartPendingScans => Error.Forbidden(description: nameof(CanOnlyStartPendingScans));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that only a running scan can be completed.
|
||||
/// </summary>
|
||||
public static Error CanOnlyCompleteRunningScans => Error.Forbidden(description: nameof(CanOnlyCompleteRunningScans));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that only a pending or running scan can be cancelled.
|
||||
/// </summary>
|
||||
public static Error CanOnlyCancelPendingOrRunningScans => Error.Forbidden(description: nameof(CanOnlyCancelPendingOrRunningScans));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that only a pending or running scan can be marked as failed.
|
||||
/// </summary>
|
||||
public static Error CanOnlyFailPendingOrRunningScans => Error.Forbidden(description: nameof(CanOnlyFailPendingOrRunningScans));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the scan identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ScanIdCannotBeEmpty => Error.Validation(description: nameof(ScanIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a media library scan with the same identifier already exists.
|
||||
/// </summary>
|
||||
public static Error LibraryScanAlreadyExists => Error.Conflict(description: nameof(LibraryScanAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the library is already being scanned.
|
||||
/// </summary>
|
||||
public static Error LibraryAlreadyBeingScanned => Error.Forbidden(description: nameof(LibraryAlreadyBeingScanned));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested library scan was not found.
|
||||
/// </summary>
|
||||
public static Error LibraryScanNotFound => Error.NotFound(description: nameof(LibraryScanNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the total scan job items count cannot be negative.
|
||||
/// </summary>
|
||||
public static Error TotalScanJobItemsCountMustBePositive => Error.Validation(description: nameof(TotalScanJobItemsCountMustBePositive));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the total scan jobs count cannot be negative, and cannot be zero unless the scan is pending.
|
||||
/// </summary>
|
||||
public static Error TotalScanJobsCountMustBePositive => Error.Validation(description: nameof(TotalScanJobsCountMustBePositive));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the completed scan job items count cannot be negative.
|
||||
/// </summary>
|
||||
public static Error CompletedScanJobItemsCountMustBePositive => Error.Validation(description: nameof(CompletedScanJobItemsCountMustBePositive));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the completed scan jobs count cannot be negative.
|
||||
/// </summary>
|
||||
public static Error CompletedScanJobsCountMustBePositive => Error.Validation(description: nameof(CompletedScanJobsCountMustBePositive));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the completed scan job items count cannot exceed the total scan job items count.
|
||||
/// </summary>
|
||||
public static Error CompletedScanJobItemsCountCantExceedTotalScanJobItemsCount => Error.Validation(description: nameof(CompletedScanJobItemsCountCantExceedTotalScanJobItemsCount));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the completed scan jobs count cannot exceed the total scan jobs count.
|
||||
/// </summary>
|
||||
public static Error CompletedScanJobsCountCantExceedTotalScanJobsCount => Error.Validation(description: nameof(CompletedScanJobsCountCantExceedTotalScanJobsCount));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the current operation of a scan job cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ScanJobCurrentOperationCannotBeEmpty => Error.Validation(description: nameof(ScanJobCurrentOperationCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that no scanner is implemented for the requested library type.
|
||||
/// </summary>
|
||||
public static Error NoScannerForLibraryType => Error.NotImplemented(description: nameof(NoScannerForLibraryType));
|
||||
}
|
||||
}
|
||||
@@ -9,29 +9,119 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report media consumption rule violations and missing consumption records.
|
||||
/// </summary>
|
||||
public static class MediaConsumption
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the media kind does not support consumption tracking.
|
||||
/// </summary>
|
||||
public static Error UnsupportedMediaKind => Error.Validation(description: nameof(UnsupportedMediaKind));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the media kind cannot start in a completed state because it is not a one-shot kind.
|
||||
/// </summary>
|
||||
public static Error MediaKindCannotStartCompleted => Error.Forbidden(description: nameof(MediaKindCannotStartCompleted));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a consumption of the media kind cannot be resumed.
|
||||
/// </summary>
|
||||
public static Error MediaKindCannotResume => Error.Forbidden(description: nameof(MediaKindCannotResume));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested consumption record was not found.
|
||||
/// </summary>
|
||||
public static Error ConsumptionRecordNotFound => Error.NotFound(description: nameof(ConsumptionRecordNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the resume point of the media item was not found.
|
||||
/// </summary>
|
||||
public static Error MediaResumePointNotFound => Error.NotFound(description: nameof(MediaResumePointNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the consumption record identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ConsumptionRecordIdCannotBeEmpty => Error.Validation(description: nameof(ConsumptionRecordIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the media item identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error MediaItemIdCannotBeEmpty => Error.Validation(description: nameof(MediaItemIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the target user identifier is not valid.
|
||||
/// </summary>
|
||||
public static Error TargetUserIdIsInvalid => Error.Validation(description: nameof(TargetUserIdIsInvalid));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the consumption date range is not valid.
|
||||
/// </summary>
|
||||
public static Error ConsumptionDateRangeIsInvalid => Error.Validation(description: nameof(ConsumptionDateRangeIsInvalid));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the media position is not valid.
|
||||
/// </summary>
|
||||
public static Error InvalidMediaPosition => Error.Validation(description: nameof(InvalidMediaPosition));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the progress fraction is not valid.
|
||||
/// </summary>
|
||||
public static Error InvalidProgressFraction => Error.Validation(description: nameof(InvalidProgressFraction));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the consumed duration cannot be negative.
|
||||
/// </summary>
|
||||
public static Error ConsumedDurationMustBeNonNegative => Error.Validation(description: nameof(ConsumedDurationMustBeNonNegative));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the consumed duration is outside the allowed range.
|
||||
/// </summary>
|
||||
public static Error ConsumedDurationIsOutOfRange => Error.Validation(description: nameof(ConsumedDurationIsOutOfRange));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the consumed duration cannot decrease.
|
||||
/// </summary>
|
||||
public static Error ConsumedDurationCannotDecrease => Error.Forbidden(description: nameof(ConsumedDurationCannotDecrease));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the consecutive pages read count cannot be negative.
|
||||
/// </summary>
|
||||
public static Error ConsecutivePagesReadMustBeNonNegative => Error.Validation(description: nameof(ConsecutivePagesReadMustBeNonNegative));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that consecutive pages read is only supported for page-based media.
|
||||
/// </summary>
|
||||
public static Error ConsecutivePagesReadIsOnlySupportedForPageBasedMedia => Error.Forbidden(description: nameof(ConsecutivePagesReadIsOnlySupportedForPageBasedMedia));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the consumption is not in progress.
|
||||
/// </summary>
|
||||
public static Error ConsumptionIsNotInProgress => Error.Conflict(description: nameof(ConsumptionIsNotInProgress));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the consumption already reached a terminal state.
|
||||
/// </summary>
|
||||
public static Error ConsumptionIsAlreadyTerminal => Error.Conflict(description: nameof(ConsumptionIsAlreadyTerminal));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a consumption in progress cannot have an end time.
|
||||
/// </summary>
|
||||
public static Error InProgressConsumptionCannotHaveEndTime => Error.Validation(description: nameof(InProgressConsumptionCannotHaveEndTime));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an ended consumption must have an end time.
|
||||
/// </summary>
|
||||
public static Error EndedConsumptionMustHaveEndTime => Error.Validation(description: nameof(EndedConsumptionMustHaveEndTime));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the last activity of a consumption cannot precede its start.
|
||||
/// </summary>
|
||||
public static Error LastActivityCannotPrecedeStart => Error.Forbidden(description: nameof(LastActivityCannotPrecedeStart));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the end of a consumption cannot precede its last activity.
|
||||
/// </summary>
|
||||
public static Error EndedConsumptionCannotPrecedeLastActivity => Error.Forbidden(description: nameof(EndedConsumptionCannotPrecedeLastActivity));
|
||||
}
|
||||
}
|
||||
@@ -9,20 +9,74 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report media contributor rule violations and missing contributors.
|
||||
/// </summary>
|
||||
public static class MediaContributor
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the contributor name cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ContributorNameCannotBeEmpty => Error.Validation(description: nameof(ContributorNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the contributor display name cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ContributorDisplayNameCannotBeEmpty => Error.Validation(description: nameof(ContributorDisplayNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the contributor display name exceeds the maximum length of 100 characters.
|
||||
/// </summary>
|
||||
public static Error ContributorDisplayNameMustBeMaximum100CharactersLong => Error.Validation(description: nameof(ContributorDisplayNameMustBeMaximum100CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the contributor legal name exceeds the maximum length of 100 characters.
|
||||
/// </summary>
|
||||
public static Error ContributorLegalNameMustBeMaximum100CharactersLong => Error.Validation(description: nameof(ContributorLegalNameMustBeMaximum100CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the contributor role name cannot be empty.
|
||||
/// </summary>
|
||||
public static Error RoleNameCannotBeEmpty => Error.Validation(description: nameof(RoleNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the contributor role name exceeds the maximum length of 50 characters.
|
||||
/// </summary>
|
||||
public static Error RoleNameMustBeMaximum50CharactersLong => Error.Validation(description: nameof(RoleNameMustBeMaximum50CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the contributor role category cannot be empty.
|
||||
/// </summary>
|
||||
public static Error RoleCategoryCannotBeEmpty => Error.Validation(description: nameof(RoleCategoryCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the contributor role must not be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error ContributorRoleCannotBeNull => Error.Validation(description: nameof(ContributorRoleCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the contributors list must not be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error ContributorsListCannotBeNull => Error.Validation(description: nameof(ContributorsListCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the media contributor identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error MediaContributorIdCannotBeEmpty => Error.Validation(description: nameof(MediaContributorIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested media contributor was not found.
|
||||
/// </summary>
|
||||
public static Error MediaContributorNotFound => Error.NotFound(description: nameof(MediaContributorNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the media contributor already exists.
|
||||
/// </summary>
|
||||
public static Error MediaContributorAlreadyExists => Error.Conflict(description: nameof(MediaContributorAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the media contributor role is not a defined value.
|
||||
/// </summary>
|
||||
public static Error UnknownMediaContributorRole => Error.Validation(description: nameof(UnknownMediaContributorRole));
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,19 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report media item contributor name rule violations.
|
||||
/// </summary>
|
||||
public static class MediaContributors
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a media contributor cannot be empty.
|
||||
/// </summary>
|
||||
public static Error MediaContributorNameCannotBeEmpty => Error.Validation(description: nameof(MediaContributorNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the role name of a media contributor cannot be empty.
|
||||
/// </summary>
|
||||
public static Error MediaContributorRoleNameCannotBeEmpty => Error.Validation(description: nameof(MediaContributorRoleNameCannotBeEmpty));
|
||||
}
|
||||
}
|
||||
@@ -9,38 +9,164 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the errors that report failures raised while working with the metadata of media items.
|
||||
/// </summary>
|
||||
public static class Metadata
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the metadata of a media item cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error MetadataCannotBeNull => Error.Validation(description: nameof(MetadataCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the title of a media item cannot be empty.
|
||||
/// </summary>
|
||||
public static Error TitleCannotBeEmpty => Error.Validation(description: nameof(TitleCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the title of a media item exceeds the maximum length of 255 characters.
|
||||
/// </summary>
|
||||
public static Error TitleMustBeMaximum255CharactersLong => Error.Validation(description: nameof(TitleMustBeMaximum255CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the original title of a media item exceeds the maximum length of 255 characters.
|
||||
/// </summary>
|
||||
public static Error OriginalTitleMustBeMaximum255CharactersLong => Error.Validation(description: nameof(OriginalTitleMustBeMaximum255CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the description of a media item exceeds the maximum length of 2000 characters.
|
||||
/// </summary>
|
||||
public static Error DescriptionMustBeMaximum2000CharactersLong => Error.Validation(description: nameof(DescriptionMustBeMaximum2000CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the collection of genres for a media item cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error GenresListCannotBeNull => Error.Validation(description: nameof(GenresListCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a genre cannot be empty.
|
||||
/// </summary>
|
||||
public static Error GenreNameCannotBeEmpty => Error.Validation(description: nameof(GenreNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a genre exceeds the maximum length of 50 characters.
|
||||
/// </summary>
|
||||
public static Error GenreNameMustBeMaximum50CharactersLong => Error.Validation(description: nameof(GenreNameMustBeMaximum50CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the collection of tags for a media item cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error TagsListCannotBeNull => Error.Validation(description: nameof(TagsListCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a tag cannot be empty.
|
||||
/// </summary>
|
||||
public static Error TagNameCannotBeEmpty => Error.Validation(description: nameof(TagNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a tag exceeds the maximum length of 50 characters.
|
||||
/// </summary>
|
||||
public static Error TagNameMustBeMaximum50CharactersLong => Error.Validation(description: nameof(TagNameMustBeMaximum50CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a mood cannot be empty.
|
||||
/// </summary>
|
||||
public static Error MoodNameCannotBeEmpty => Error.Validation(description: nameof(MoodNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the code of a language cannot be empty.
|
||||
/// </summary>
|
||||
public static Error LanguageCodeCannotBeEmpty => Error.Validation(description: nameof(LanguageCodeCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a language cannot be empty.
|
||||
/// </summary>
|
||||
public static Error LanguageNameCannotBeEmpty => Error.Validation(description: nameof(LanguageNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the code of a language must be exactly 2 characters long.
|
||||
/// </summary>
|
||||
public static Error LanguageCodeMustBe2CharactersLong => Error.Validation(description: nameof(LanguageCodeMustBe2CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a language exceeds the maximum length of 50 characters.
|
||||
/// </summary>
|
||||
public static Error LanguageNameMustBeMaximum50CharactersLong => Error.Validation(description: nameof(LanguageNameMustBeMaximum50CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the native name of a language exceeds the maximum length of 50 characters.
|
||||
/// </summary>
|
||||
public static Error LanguageNativeNameMustBeMaximum50CharactersLong => Error.Validation(description: nameof(LanguageNativeNameMustBeMaximum50CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the original release year of a media item is outside the range from 1 to 9999.
|
||||
/// </summary>
|
||||
public static Error OriginalReleaseYearMustBeBetween1And9999 => Error.Validation(description: nameof(OriginalReleaseYearMustBeBetween1And9999));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the re-release year of a media item is outside the range from 1 to 9999.
|
||||
/// </summary>
|
||||
public static Error ReReleaseYearMustBeBetween1And9999 => Error.Validation(description: nameof(ReReleaseYearMustBeBetween1And9999));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the re-release year of a media item is earlier than its original release year.
|
||||
/// </summary>
|
||||
public static Error ReReleaseYearCannotBeEarlierThanOriginalReleaseYear => Error.Validation(description: nameof(ReReleaseYearCannotBeEarlierThanOriginalReleaseYear));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the code of a release country must be exactly 2 characters long.
|
||||
/// </summary>
|
||||
public static Error CountryCodeMustBe2CharactersLong => Error.Validation(description: nameof(CountryCodeMustBe2CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the release version of a media item exceeds the maximum length of 50 characters.
|
||||
/// </summary>
|
||||
public static Error ReleaseVersionMustBeMaximum50CharactersLong => Error.Validation(description: nameof(ReleaseVersionMustBeMaximum50CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the original release date and the original release year of a media item refer to different years.
|
||||
/// </summary>
|
||||
public static Error OriginalReleaseDateAndYearMustMatch => Error.Validation(description: nameof(OriginalReleaseDateAndYearMustMatch));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the re-release date and the re-release year of a media item refer to different years.
|
||||
/// </summary>
|
||||
public static Error ReReleaseDateAndYearMustMatch => Error.Validation(description: nameof(ReReleaseDateAndYearMustMatch));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the re-release date of a media item is earlier than its original release date.
|
||||
/// </summary>
|
||||
public static Error ReReleaseDateCannotBeEarlierThanOriginalReleaseDate => Error.Validation(description: nameof(ReReleaseDateCannotBeEarlierThanOriginalReleaseDate));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the release information of a media item cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error ReleaseInfoCannotBeNull => Error.Validation(description: nameof(ReleaseInfoCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the value or the maximum value of a rating is negative.
|
||||
/// </summary>
|
||||
public static Error RatingValueMustBePositive => Error.Validation(description: nameof(RatingValueMustBePositive));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the maximum value of a rating must be positive.
|
||||
/// </summary>
|
||||
public static Error RatingMaxValueMustBePositive => Error.Validation(description: nameof(RatingMaxValueMustBePositive));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the value of a rating is greater than the maximum value of the same rating.
|
||||
/// </summary>
|
||||
public static Error RatingValueCannotBeGreaterThanMaxValue => Error.Validation(description: nameof(RatingValueCannotBeGreaterThanMaxValue));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the vote count of a rating must be positive.
|
||||
/// </summary>
|
||||
public static Error RatingVoteCountMustBePositive => Error.Validation(description: nameof(RatingVoteCountMustBePositive));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the collection of ratings for a media item cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error RatingsListCannotBeNull => Error.Validation(description: nameof(RatingsListCannotBeNull));
|
||||
}
|
||||
}
|
||||
@@ -9,65 +9,299 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the errors that report failures raised while working with music artists, albums and tracks.
|
||||
/// </summary>
|
||||
public static class Music
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested music artist does not exist.
|
||||
/// </summary>
|
||||
public static Error ArtistNotFound => Error.NotFound(description: nameof(ArtistNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music artist with the same identifier or name already exists in the library.
|
||||
/// </summary>
|
||||
public static Error ArtistAlreadyExists => Error.Conflict(description: nameof(ArtistAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music artist identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ArtistIdCannotBeEmpty => Error.Validation(description: nameof(ArtistIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music artist name cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ArtistNameCannotBeEmpty => Error.Validation(description: nameof(ArtistNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music artist name exceeds the maximum length of 255 characters.
|
||||
/// </summary>
|
||||
public static Error ArtistNameMustBeMaximum255CharactersLong => Error.Validation(description: nameof(ArtistNameMustBeMaximum255CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music artist website exceeds the maximum length of 2048 characters.
|
||||
/// </summary>
|
||||
public static Error ArtistWebsiteMustBeMaximum2048CharactersLong => Error.Validation(description: nameof(ArtistWebsiteMustBeMaximum2048CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a MusicBrainz identifier does not have a valid format.
|
||||
/// </summary>
|
||||
public static Error MusicBrainzIdInvalidFormat => Error.Validation(description: nameof(MusicBrainzIdInvalidFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an ISRC value cannot be empty.
|
||||
/// </summary>
|
||||
public static Error IsrcValueCannotBeEmpty => Error.Validation(description: nameof(IsrcValueCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an ISRC value does not have a valid ISRC format.
|
||||
/// </summary>
|
||||
public static Error IsrcInvalidFormat => Error.Validation(description: nameof(IsrcInvalidFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a barcode value cannot be empty.
|
||||
/// </summary>
|
||||
public static Error BarcodeValueCannotBeEmpty => Error.Validation(description: nameof(BarcodeValueCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a barcode is not made of 12 or 13 digits.
|
||||
/// </summary>
|
||||
public static Error InvalidFormatForBarcode => Error.Validation(description: nameof(InvalidFormatForBarcode));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested music album does not exist.
|
||||
/// </summary>
|
||||
public static Error AlbumNotFound => Error.NotFound(description: nameof(AlbumNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music album with the same identifier already exists in the library.
|
||||
/// </summary>
|
||||
public static Error AlbumAlreadyExists => Error.Conflict(description: nameof(AlbumAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music artist cannot exist without at least one album.
|
||||
/// </summary>
|
||||
public static Error ArtistMustHaveAtLeastOneAlbum => Error.Forbidden(description: nameof(ArtistMustHaveAtLeastOneAlbum));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music album identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error AlbumIdCannotBeEmpty => Error.Validation(description: nameof(AlbumIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the collection of albums for a music artist cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error AlbumsListCannotBeNull => Error.Validation(description: nameof(AlbumsListCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music album title cannot be empty.
|
||||
/// </summary>
|
||||
public static Error AlbumTitleCannotBeEmpty => Error.Validation(description: nameof(AlbumTitleCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music album title exceeds the maximum length of 255 characters.
|
||||
/// </summary>
|
||||
public static Error AlbumTitleMustBeMaximum255CharactersLong => Error.Validation(description: nameof(AlbumTitleMustBeMaximum255CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the total number of discs in a music album must be greater than zero.
|
||||
/// </summary>
|
||||
public static Error TotalDiscsMustBeGreaterThanZero => Error.Validation(description: nameof(TotalDiscsMustBeGreaterThanZero));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the total number of tracks in a music album must be greater than zero.
|
||||
/// </summary>
|
||||
public static Error TotalTracksMustBeGreaterThanZero => Error.Validation(description: nameof(TotalTracksMustBeGreaterThanZero));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music release type is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error UnknownMusicReleaseType => Error.Validation(description: nameof(UnknownMusicReleaseType));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music release status is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error UnknownMusicReleaseStatus => Error.Validation(description: nameof(UnknownMusicReleaseStatus));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music media format is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error UnknownMusicMediaFormat => Error.Validation(description: nameof(UnknownMusicMediaFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music release packaging is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error UnknownMusicReleasePackaging => Error.Validation(description: nameof(UnknownMusicReleasePackaging));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music key is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error UnknownMusicKey => Error.Validation(description: nameof(UnknownMusicKey));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music album catalog number exceeds the maximum length of 50 characters.
|
||||
/// </summary>
|
||||
public static Error CatalogNumberMustBeMaximum50CharactersLong => Error.Validation(description: nameof(CatalogNumberMustBeMaximum50CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested music track does not exist.
|
||||
/// </summary>
|
||||
public static Error TrackNotFound => Error.NotFound(description: nameof(TrackNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the audio file of a music track does not exist or cannot be read.
|
||||
/// </summary>
|
||||
public static Error TrackFileNotFound => Error.NotFound(description: nameof(TrackFileNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music track with the same identifier or file path already exists in the library.
|
||||
/// </summary>
|
||||
public static Error TrackAlreadyExists => Error.Conflict(description: nameof(TrackAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music track identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error TrackIdCannotBeEmpty => Error.Validation(description: nameof(TrackIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the collection of tracks for a music album cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error TracksListCannotBeNull => Error.Validation(description: nameof(TracksListCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music track file path cannot be empty.
|
||||
/// </summary>
|
||||
public static Error TrackPathCannotBeEmpty => Error.Validation(description: nameof(TrackPathCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music track file path exceeds the maximum length of 2048 characters.
|
||||
/// </summary>
|
||||
public static Error TrackPathMustBeMaximum2048CharactersLong => Error.Validation(description: nameof(TrackPathMustBeMaximum2048CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music track file path does not reside within any of the content locations of the library.
|
||||
/// </summary>
|
||||
public static Error TrackPathMustBeWithinLibraryContentLocations => Error.Validation(description: nameof(TrackPathMustBeWithinLibraryContentLocations));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the number of a music track must be greater than zero.
|
||||
/// </summary>
|
||||
public static Error TrackNumberMustBeGreaterThanZero => Error.Validation(description: nameof(TrackNumberMustBeGreaterThanZero));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the disc number of a music track must be greater than zero.
|
||||
/// </summary>
|
||||
public static Error DiscNumberMustBeGreaterThanZero => Error.Validation(description: nameof(DiscNumberMustBeGreaterThanZero));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music script exceeds the maximum length of 50 characters.
|
||||
/// </summary>
|
||||
public static Error ScriptMustBeMaximum50CharactersLong => Error.Validation(description: nameof(ScriptMustBeMaximum50CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the title of a music work exceeds the maximum length of 255 characters.
|
||||
/// </summary>
|
||||
public static Error WorkMustBeMaximum255CharactersLong => Error.Validation(description: nameof(WorkMustBeMaximum255CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the beats per minute value of a music track must be greater than zero.
|
||||
/// </summary>
|
||||
public static Error BpmMustBeGreaterThanZero => Error.Validation(description: nameof(BpmMustBeGreaterThanZero));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the album cannot be added to the music artist because the artist already has it.
|
||||
/// </summary>
|
||||
public static Error TheArtistAlreadyHasTheAlbum => Error.Forbidden(description: nameof(TheArtistAlreadyHasTheAlbum));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the album cannot be removed from the music artist because the artist does not have it.
|
||||
/// </summary>
|
||||
public static Error TheArtistDoesNotHaveTheAlbum => Error.Forbidden(description: nameof(TheArtistDoesNotHaveTheAlbum));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the track cannot be added to the music album because the album already contains it.
|
||||
/// </summary>
|
||||
public static Error TheTrackIsAlreadyInTheAlbum => Error.Forbidden(description: nameof(TheTrackIsAlreadyInTheAlbum));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the track cannot be removed from the music album because the album does not contain it.
|
||||
/// </summary>
|
||||
public static Error TheTrackIsNotInTheAlbum => Error.Forbidden(description: nameof(TheTrackIsNotInTheAlbum));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a music area cannot be empty.
|
||||
/// </summary>
|
||||
public static Error AreaNameCannotBeEmpty => Error.Validation(description: nameof(AreaNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a music artist alias cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ArtistAliasNameCannotBeEmpty => Error.Validation(description: nameof(ArtistAliasNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a music artist alias exceeds the maximum length of 255 characters.
|
||||
/// </summary>
|
||||
public static Error ArtistAliasNameMustBeMaximum255CharactersLong => Error.Validation(description: nameof(ArtistAliasNameMustBeMaximum255CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the name of a music area exceeds the maximum length of 255 characters.
|
||||
/// </summary>
|
||||
public static Error AreaNameMustBeMaximum255CharactersLong => Error.Validation(description: nameof(AreaNameMustBeMaximum255CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music artist type is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error UnknownMusicArtistType => Error.Validation(description: nameof(UnknownMusicArtistType));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music artist gender is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error UnknownMusicArtistGender => Error.Validation(description: nameof(UnknownMusicArtistGender));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a music artist country exceeds the maximum length of 2 characters.
|
||||
/// </summary>
|
||||
public static Error CountryMustBeMaximum2CharactersLong => Error.Validation(description: nameof(CountryMustBeMaximum2CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an IPI value cannot be empty.
|
||||
/// </summary>
|
||||
public static Error IpiValueCannotBeEmpty => Error.Validation(description: nameof(IpiValueCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an IPI value exceeds the maximum length of 20 characters.
|
||||
/// </summary>
|
||||
public static Error IpiValueMustBeMaximum20CharactersLong => Error.Validation(description: nameof(IpiValueMustBeMaximum20CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an ISNI value cannot be empty.
|
||||
/// </summary>
|
||||
public static Error IsniValueCannotBeEmpty => Error.Validation(description: nameof(IsniValueCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an ISNI value exceeds the maximum length of 20 characters.
|
||||
/// </summary>
|
||||
public static Error IsniValueMustBeMaximum20CharactersLong => Error.Validation(description: nameof(IsniValueMustBeMaximum20CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the title of a music work cannot be empty.
|
||||
/// </summary>
|
||||
public static Error WorkTitleCannotBeEmpty => Error.Validation(description: nameof(WorkTitleCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the cover image of a music artist or album cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error CoverCannotBeNull => Error.Validation(description: nameof(CoverCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the number of tracks requested for shuffling must be greater than zero.
|
||||
/// </summary>
|
||||
public static Error ShuffleTrackCountMustBeGreaterThanZero => Error.Validation(description: nameof(ShuffleTrackCountMustBeGreaterThanZero));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the number of tracks requested for shuffling cannot exceed 500.
|
||||
/// </summary>
|
||||
public static Error ShuffleTrackCountMustBeAtMost500 => Error.Validation(description: nameof(ShuffleTrackCountMustBeAtMost500));
|
||||
}
|
||||
}
|
||||
@@ -9,8 +9,14 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report denied access to file system resources.
|
||||
/// </summary>
|
||||
public static class Permission
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the current user is not authorized to access the requested resource.
|
||||
/// </summary>
|
||||
public static Error UnauthorizedAccess => Error.Failure(description: nameof(UnauthorizedAccess));
|
||||
}
|
||||
}
|
||||
@@ -9,24 +9,94 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report playback delivery and track normalization failures.
|
||||
/// </summary>
|
||||
public static class Playback
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that no supported playback format is available for the requested track.
|
||||
/// </summary>
|
||||
public static Error NoSupportedPlaybackFormat => Error.Forbidden(description: nameof(NoSupportedPlaybackFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playback delivery changed before it could be used.
|
||||
/// </summary>
|
||||
public static Error PlaybackDeliveryChanged => Error.Conflict(description: nameof(PlaybackDeliveryChanged));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested playback delivery was not found.
|
||||
/// </summary>
|
||||
public static Error PlaybackDeliveryNotFound => Error.NotFound(description: nameof(PlaybackDeliveryNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playback delivery identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error DeliveryIdCannotBeEmpty => Error.Validation(description: nameof(DeliveryIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playback delivery identifier is not valid.
|
||||
/// </summary>
|
||||
public static Error DeliveryIdIsInvalid => Error.Validation(description: nameof(DeliveryIdIsInvalid));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playback format has no implementation.
|
||||
/// </summary>
|
||||
public static Error PlaybackFormatNotImplemented => Error.Internal(description: nameof(PlaybackFormatNotImplemented));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the normalized track cache entry was not found.
|
||||
/// </summary>
|
||||
public static Error NormalizedTrackCacheEntryNotFound => Error.NotFound(description: nameof(NormalizedTrackCacheEntryNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the normalized track segment was not found.
|
||||
/// </summary>
|
||||
public static Error NormalizedTrackSegmentNotFound => Error.NotFound(description: nameof(NormalizedTrackSegmentNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the track normalization failed.
|
||||
/// </summary>
|
||||
public static Error NormalizationFailed => Error.Failure(description: nameof(NormalizationFailed));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the normalized track cache limit was exceeded.
|
||||
/// </summary>
|
||||
public static Error NormalizationCacheLimitExceeded => Error.Failure(description: nameof(NormalizationCacheLimitExceeded));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the track normalization timed out.
|
||||
/// </summary>
|
||||
public static Error NormalizationTimedOut => Error.Timeout(description: nameof(NormalizationTimedOut));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the track normalization is unavailable because a required resource cannot be used.
|
||||
/// </summary>
|
||||
public static Error NormalizationUnavailable => Error.ResourceUnavailable(description: nameof(NormalizationUnavailable));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that normalization is not required for a directly played track.
|
||||
/// </summary>
|
||||
public static Error NormalizationIsNotRequiredForDirectPlay => Error.Conflict(description: nameof(NormalizationIsNotRequiredForDirectPlay));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the segment duration must be a positive number.
|
||||
/// </summary>
|
||||
public static Error SegmentDurationMustBePositive => Error.Validation(description: nameof(SegmentDurationMustBePositive));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the segment index cannot be empty.
|
||||
/// </summary>
|
||||
public static Error SegmentIndexCannotBeEmpty => Error.Validation(description: nameof(SegmentIndexCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the segment index is not valid.
|
||||
/// </summary>
|
||||
public static Error SegmentIndexMustBeValid => Error.Validation(description: nameof(SegmentIndexMustBeValid));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the track duration must be a positive number.
|
||||
/// </summary>
|
||||
public static Error TrackDurationMustBePositive => Error.Validation(description: nameof(TrackDurationMustBePositive));
|
||||
}
|
||||
}
|
||||
@@ -9,19 +9,69 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report playlist rule violations and missing playlists.
|
||||
/// </summary>
|
||||
public static class Playlists
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested playlist was not found.
|
||||
/// </summary>
|
||||
public static Error PlaylistNotFound => Error.NotFound(description: nameof(PlaylistNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a playlist with the same identifier already exists.
|
||||
/// </summary>
|
||||
public static Error PlaylistAlreadyExists => Error.Conflict(description: nameof(PlaylistAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playlist identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error PlaylistIdCannotBeEmpty => Error.Validation(description: nameof(PlaylistIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playlist entry identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error PlaylistEntryIdCannotBeEmpty => Error.Validation(description: nameof(PlaylistEntryIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playlist name cannot be empty.
|
||||
/// </summary>
|
||||
public static Error PlaylistNameCannotBeEmpty => Error.Validation(description: nameof(PlaylistNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playlist name exceeds the maximum length of 255 characters.
|
||||
/// </summary>
|
||||
public static Error PlaylistNameMustBeMaximum255CharactersLong => Error.Validation(description: nameof(PlaylistNameMustBeMaximum255CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playlist description exceeds the maximum length of 2000 characters.
|
||||
/// </summary>
|
||||
public static Error PlaylistDescriptionMustBeMaximum2000CharactersLong => Error.Validation(description: nameof(PlaylistDescriptionMustBeMaximum2000CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playlist type is not a defined value.
|
||||
/// </summary>
|
||||
public static Error PlaylistTypeIsInvalid => Error.Validation(description: nameof(PlaylistTypeIsInvalid));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playlist type does not accept media items.
|
||||
/// </summary>
|
||||
public static Error PlaylistDoesNotAcceptMediaItems => Error.Forbidden(description: nameof(PlaylistDoesNotAcceptMediaItems));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested playlist entry was not found.
|
||||
/// </summary>
|
||||
public static Error PlaylistEntryNotFound => Error.NotFound(description: nameof(PlaylistEntryNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the positions of the playlist entries are not valid.
|
||||
/// </summary>
|
||||
public static Error PlaylistEntryPositionsAreInvalid => Error.Validation(description: nameof(PlaylistEntryPositionsAreInvalid));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the target position of the playlist entry move is not valid.
|
||||
/// </summary>
|
||||
public static Error PlaylistMoveTargetPositionIsInvalid => Error.Validation(description: nameof(PlaylistMoveTargetPositionIsInvalid));
|
||||
}
|
||||
}
|
||||
@@ -9,19 +9,69 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report plugin rule violations and plugin loading failures.
|
||||
/// </summary>
|
||||
public static class Plugins
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested plugin was not found.
|
||||
/// </summary>
|
||||
public static Error PluginNotFound => Error.NotFound(description: nameof(PluginNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the plugin identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error PluginIdCannotBeEmpty => Error.Validation(description: nameof(PluginIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the plugin settings must not be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error PluginSettingsCannotBeNull => Error.Validation(description: nameof(PluginSettingsCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the library identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error LibraryIdCannotBeEmpty => Error.Validation(description: nameof(LibraryIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the plugin identifiers must be unique.
|
||||
/// </summary>
|
||||
public static Error PluginIdsMustBeUnique => Error.Validation(description: nameof(PluginIdsMustBeUnique));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the plugin is not supported for the library type.
|
||||
/// </summary>
|
||||
public static Error PluginNotSupportedForLibraryType => Error.Validation(description: nameof(PluginNotSupportedForLibraryType));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the metadata provider configuration of the library was not found.
|
||||
/// </summary>
|
||||
public static Error LibraryMetadataProviderConfigurationNotFound => Error.NotFound(description: nameof(LibraryMetadataProviderConfigurationNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the plugin archive must not be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error PluginArchiveCannotBeNull => Error.Validation(description: nameof(PluginArchiveCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the plugin file name cannot be empty.
|
||||
/// </summary>
|
||||
public static Error PluginFileNameCannotBeEmpty => Error.Validation(description: nameof(PluginFileNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the plugin file type is not supported.
|
||||
/// </summary>
|
||||
public static Error UnsupportedPluginFileType => Error.Validation(description: nameof(UnsupportedPluginFileType));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the plugin archive could not be read.
|
||||
/// </summary>
|
||||
public static Error PluginArchiveNotReadable => Error.Failure(description: nameof(PluginArchiveNotReadable));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the plugin archive contains no assemblies.
|
||||
/// </summary>
|
||||
public static Error PluginArchiveContainsNoAssemblies => Error.Failure(description: nameof(PluginArchiveContainsNoAssemblies));
|
||||
}
|
||||
}
|
||||
@@ -9,15 +9,49 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report reading rule violations and missing reading resources.
|
||||
/// </summary>
|
||||
public static class Reading
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the reading location reference cannot be empty.
|
||||
/// </summary>
|
||||
public static Error LocationRefCannotBeEmpty => Error.Validation(description: nameof(LocationRefCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the reading resource key cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ResourceKeyCannotBeEmpty => Error.Validation(description: nameof(ResourceKeyCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested book was not found.
|
||||
/// </summary>
|
||||
public static Error BookNotFound => Error.NotFound(description: nameof(BookNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that no book reader is available.
|
||||
/// </summary>
|
||||
public static Error NoReaderAvailable => Error.NotFound(description: nameof(NoReaderAvailable));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested book reader was not found because it is disabled.
|
||||
/// </summary>
|
||||
public static Error ReaderDisabled => Error.NotFound(description: nameof(ReaderDisabled));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the file of the requested book was not found.
|
||||
/// </summary>
|
||||
public static Error BookFileNotFound => Error.NotFound(description: nameof(BookFileNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested book section was not found.
|
||||
/// </summary>
|
||||
public static Error SectionNotFound => Error.NotFound(description: nameof(SectionNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested reading resource was not found.
|
||||
/// </summary>
|
||||
public static Error ResourceNotFound => Error.NotFound(description: nameof(ResourceNotFound));
|
||||
}
|
||||
}
|
||||
@@ -9,21 +9,79 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report scheduled job rule violations and scheduling conflicts.
|
||||
/// </summary>
|
||||
public static class Scheduling
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the scheduled job name cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ScheduledJobNameCannotBeEmpty => Error.Validation(description: nameof(ScheduledJobNameCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the interval in minutes must be a positive number.
|
||||
/// </summary>
|
||||
public static Error IntervalMinutesMustBePositive => Error.Validation(description: nameof(IntervalMinutesMustBePositive));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the hour must be between 0 and 23.
|
||||
/// </summary>
|
||||
public static Error HourMustBeBetweenZeroAndTwentyThree => Error.Validation(description: nameof(HourMustBeBetweenZeroAndTwentyThree));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the minute must be between 0 and 59.
|
||||
/// </summary>
|
||||
public static Error MinuteMustBeBetweenZeroAndFiftyNine => Error.Validation(description: nameof(MinuteMustBeBetweenZeroAndFiftyNine));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the scheduled job already exists.
|
||||
/// </summary>
|
||||
public static Error ScheduledJobAlreadyExists => Error.Conflict(description: nameof(ScheduledJobAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested scheduled job was not found.
|
||||
/// </summary>
|
||||
public static Error ScheduledJobNotFound => Error.NotFound(description: nameof(ScheduledJobNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the scheduled job execution already exists.
|
||||
/// </summary>
|
||||
public static Error ScheduledJobExecutionAlreadyExists => Error.Conflict(description: nameof(ScheduledJobExecutionAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested scheduled job execution was not found.
|
||||
/// </summary>
|
||||
public static Error ScheduledJobExecutionNotFound => Error.NotFound(description: nameof(ScheduledJobExecutionNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the cycle of the scheduled job was already started.
|
||||
/// </summary>
|
||||
public static Error ScheduledJobCycleAlreadyStarted => Error.Forbidden(description: nameof(ScheduledJobCycleAlreadyStarted));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the cycle of the scheduled job was not started.
|
||||
/// </summary>
|
||||
public static Error ScheduledJobNotStarted => Error.Forbidden(description: nameof(ScheduledJobNotStarted));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the scheduled job is already running.
|
||||
/// </summary>
|
||||
public static Error ScheduledJobAlreadyRunning => Error.Forbidden(description: nameof(ScheduledJobAlreadyRunning));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that only a running scheduled job can be completed.
|
||||
/// </summary>
|
||||
public static Error CanOnlyCompleteRunningScheduledJob => Error.Forbidden(description: nameof(CanOnlyCompleteRunningScheduledJob));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the schedule type is not a defined value.
|
||||
/// </summary>
|
||||
public static Error InvalidScheduleType => Error.Validation(description: nameof(InvalidScheduleType));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the scheduler display time span must be a positive value.
|
||||
/// </summary>
|
||||
public static Error SchedulerDisplayTimeSpanMustBePositive => Error.Validation(description: nameof(SchedulerDisplayTimeSpanMustBePositive));
|
||||
}
|
||||
}
|
||||
@@ -9,19 +9,69 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report theme rule violations and theme file failures.
|
||||
/// </summary>
|
||||
public static class Themes
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested theme was not found.
|
||||
/// </summary>
|
||||
public static Error ThemeNotFound => Error.NotFound(description: nameof(ThemeNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the theme identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ThemeIdCannotBeEmpty => Error.Validation(description: nameof(ThemeIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the theme page key cannot be empty.
|
||||
/// </summary>
|
||||
public static Error PageKeyCannotBeEmpty => Error.Validation(description: nameof(PageKeyCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the theme asset path cannot be empty.
|
||||
/// </summary>
|
||||
public static Error ThemeAssetPathCannotBeEmpty => Error.Validation(description: nameof(ThemeAssetPathCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the theme archive must not be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error ThemeArchiveCannotBeNull => Error.Validation(description: nameof(ThemeArchiveCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the last bundled theme cannot be deleted.
|
||||
/// </summary>
|
||||
public static Error LastBundledThemeCannotBeDeleted => Error.Forbidden(description: nameof(LastBundledThemeCannotBeDeleted));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the theme cannot be deleted.
|
||||
/// </summary>
|
||||
public static Error ThemeCannotBeDeleted => Error.Forbidden(description: nameof(ThemeCannotBeDeleted));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the theme cannot be restored.
|
||||
/// </summary>
|
||||
public static Error ThemeCannotBeRestored => Error.Forbidden(description: nameof(ThemeCannotBeRestored));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the theme archive could not be read.
|
||||
/// </summary>
|
||||
public static Error ThemeArchiveNotReadable => Error.Failure(description: nameof(ThemeArchiveNotReadable));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the files of the theme could not be read.
|
||||
/// </summary>
|
||||
public static Error ThemeFilesUnreadable => Error.Failure(description: nameof(ThemeFilesUnreadable));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested theme template was not found.
|
||||
/// </summary>
|
||||
public static Error ThemeTemplateNotFound => Error.NotFound(description: nameof(ThemeTemplateNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the theme is not available for the requested page.
|
||||
/// </summary>
|
||||
public static Error ThemeNotAvailable => Error.Failure(description: nameof(ThemeNotAvailable));
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,19 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report thumbnail generation failures and image quality rule violations.
|
||||
/// </summary>
|
||||
public static class Thumbnails
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that no thumbnail is available for the requested media item.
|
||||
/// </summary>
|
||||
public static Error NoThumbnail => Error.Failure(description: nameof(NoThumbnail));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the image quality must be between 0 and 100.
|
||||
/// </summary>
|
||||
public static Error ImageQualityMustBeBetweenZeroAndOneHundred => Error.Validation(description: nameof(ImageQualityMustBeBetweenZeroAndOneHundred));
|
||||
}
|
||||
}
|
||||
@@ -9,38 +9,164 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the errors that report failures raised while working with user settings.
|
||||
/// </summary>
|
||||
public static class UserSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that settings already exist for the user.
|
||||
/// </summary>
|
||||
public static Error UserSettingsAlreadyExists => Error.Conflict(description: nameof(UserSettingsAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that no settings exist for the requested user.
|
||||
/// </summary>
|
||||
public static Error UserSettingsNotFound => Error.NotFound(description: nameof(UserSettingsNotFound));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the number of items shown per page must be greater than zero.
|
||||
/// </summary>
|
||||
public static Error ItemsPerPageMustBeGreaterThanZero => Error.Validation(description: nameof(ItemsPerPageMustBeGreaterThanZero));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playback volume cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error VolumeCannotBeNull => Error.Validation(description: nameof(VolumeCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the playback volume must be between 0 and 1, inclusive.
|
||||
/// </summary>
|
||||
public static Error VolumeMustBeBetweenZeroAndOne => Error.Validation(description: nameof(VolumeMustBeBetweenZeroAndOne));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the mute state cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error IsMutedCannotBeNull => Error.Validation(description: nameof(IsMutedCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the option to keep downloading while playback is paused cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error ShouldKeepDownloadingWhilePausedCannotBeNull => Error.Validation(description: nameof(ShouldKeepDownloadingWhilePausedCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the autoplay option cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error ShouldAutoplayCannotBeNull => Error.Validation(description: nameof(ShouldAutoplayCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the gapless playback option cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error IsGaplessPlaybackEnabledCannotBeNull => Error.Validation(description: nameof(IsGaplessPlaybackEnabledCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the replay gain mode cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error ReplayGainModeCannotBeNull => Error.Validation(description: nameof(ReplayGainModeCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the streaming quality cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error StreamingQualityCannotBeNull => Error.Validation(description: nameof(StreamingQualityCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the replay gain mode is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error InvalidReplayGainMode => Error.Validation(description: nameof(InvalidReplayGainMode));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the streaming quality is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error InvalidStreamingQuality => Error.Validation(description: nameof(InvalidStreamingQuality));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter orientation cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error VuMeterOrientationCannotBeNull => Error.Validation(description: nameof(VuMeterOrientationCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter orientation is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error InvalidVuMeterOrientation => Error.Validation(description: nameof(InvalidVuMeterOrientation));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter segment count cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error VuMeterSegmentCountCannotBeNull => Error.Validation(description: nameof(VuMeterSegmentCountCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter segment count must be between 1 and 128, inclusive.
|
||||
/// </summary>
|
||||
public static Error VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight => Error.Validation(description: nameof(VuMeterSegmentCountMustBeBetweenOneAndOneHundredTwentyEight));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter segment gap cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error VuMeterSegmentGapCannotBeNull => Error.Validation(description: nameof(VuMeterSegmentGapCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the gap between the VU meter segments, in pixels, must be between 0 and 32, inclusive.
|
||||
/// </summary>
|
||||
public static Error VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo => Error.Validation(description: nameof(VuMeterSegmentGapMustBeBetweenZeroAndThirtyTwo));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter medium threshold cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error VuMeterMediumThresholdCannotBeNull => Error.Validation(description: nameof(VuMeterMediumThresholdCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter medium threshold must be between 0 and 1, inclusive.
|
||||
/// </summary>
|
||||
public static Error VuMeterMediumThresholdMustBeBetweenZeroAndOne => Error.Validation(description: nameof(VuMeterMediumThresholdMustBeBetweenZeroAndOne));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter high threshold cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error VuMeterHighThresholdCannotBeNull => Error.Validation(description: nameof(VuMeterHighThresholdCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter high threshold must be between 0 and 1, inclusive.
|
||||
/// </summary>
|
||||
public static Error VuMeterHighThresholdMustBeBetweenZeroAndOne => Error.Validation(description: nameof(VuMeterHighThresholdMustBeBetweenZeroAndOne));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter high threshold is lower than its medium threshold.
|
||||
/// </summary>
|
||||
public static Error VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold => Error.Validation(description: nameof(VuMeterHighThresholdMustBeGreaterThanOrEqualToMediumThreshold));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the option to show the VU meter peak cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error VuMeterShowPeakCannotBeNull => Error.Validation(description: nameof(VuMeterShowPeakCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter peak hold duration cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error VuMeterPeakHoldDurationCannotBeNull => Error.Validation(description: nameof(VuMeterPeakHoldDurationCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter peak hold duration, in milliseconds, must be between 0 and 10000, inclusive.
|
||||
/// </summary>
|
||||
public static Error VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds => Error.Validation(description: nameof(VuMeterPeakHoldDurationMustBeBetweenZeroAndTenThousandMilliseconds));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter release rate per second cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error VuMeterReleasePerSecondCannotBeNull => Error.Validation(description: nameof(VuMeterReleasePerSecondCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter release rate per second must be between 0 and 100, inclusive.
|
||||
/// </summary>
|
||||
public static Error VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred => Error.Validation(description: nameof(VuMeterReleasePerSecondMustBeBetweenZeroAndOneHundred));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter peak release rate per second cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error VuMeterPeakReleasePerSecondCannotBeNull => Error.Validation(description: nameof(VuMeterPeakReleasePerSecondCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the VU meter peak release rate per second must be between 0 and 100, inclusive.
|
||||
/// </summary>
|
||||
public static Error VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred => Error.Validation(description: nameof(VuMeterPeakReleasePerSecondMustBeBetweenZeroAndOneHundred));
|
||||
}
|
||||
}
|
||||
@@ -9,10 +9,24 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Groups the errors that report user rule violations and missing users.
|
||||
/// </summary>
|
||||
public static class Users
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the user already exists.
|
||||
/// </summary>
|
||||
public static Error UserAlreadyExists => Error.Conflict(description: nameof(UserAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested user does not exist.
|
||||
/// </summary>
|
||||
public static Error UserDoesNotExist => Error.NotFound(description: nameof(UserDoesNotExist));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the user identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error UserIdCannotBeEmpty => Error.Validation(description: nameof(UserIdCannotBeEmpty));
|
||||
}
|
||||
}
|
||||
@@ -9,38 +9,164 @@ namespace Lumina.Domain.Common.Errors;
|
||||
/// </summary>
|
||||
public static partial class Errors
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the errors that report failures raised while working with books and book series.
|
||||
/// </summary>
|
||||
public static class WrittenContent
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a book with the same identifier or file path already exists in the library.
|
||||
/// </summary>
|
||||
public static Error BookAlreadyExists => Error.Conflict(description: nameof(BookAlreadyExists));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an ISBN value cannot be empty.
|
||||
/// </summary>
|
||||
public static Error IsbnValueCannotBeEmpty => Error.Validation(description: nameof(IsbnValueCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the collection of ISBNs for a book cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error IsbnListCannotBeNull => Error.Validation(description: nameof(IsbnListCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an ISBN-10 value does not have a valid ISBN-10 format.
|
||||
/// </summary>
|
||||
public static Error InvalidIsbn10Format => Error.Validation(description: nameof(InvalidIsbn10Format));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an ISBN-13 value does not have a valid ISBN-13 format.
|
||||
/// </summary>
|
||||
public static Error InvalidIsbn13Format => Error.Validation(description: nameof(InvalidIsbn13Format));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an ISBN format is not a recognized ISBN-10 or ISBN-13 value.
|
||||
/// </summary>
|
||||
public static Error UnknownIsbnFormat => Error.Unexpected(description: nameof(UnknownIsbnFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the book cannot be added to the series because the series already contains it.
|
||||
/// </summary>
|
||||
public static Error TheBookIsAlreadyInTheSeries => Error.Forbidden(description: nameof(TheBookIsAlreadyInTheSeries));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the book cannot be removed from the series because the series does not contain it.
|
||||
/// </summary>
|
||||
public static Error TheBookIsNotInTheSeries => Error.Forbidden(description: nameof(TheBookIsNotInTheSeries));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an ASIN must be exactly 10 characters long.
|
||||
/// </summary>
|
||||
public static Error AsinMustBe10CharactersLong => Error.Validation(description: nameof(AsinMustBe10CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a Goodreads identifier is not made of digits.
|
||||
/// </summary>
|
||||
public static Error GoodreadsIdMustBeNumeric => Error.Validation(description: nameof(GoodreadsIdMustBeNumeric));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an LCCN does not have a valid Library of Congress Control Number format.
|
||||
/// </summary>
|
||||
public static Error InvalidLccnFormat => Error.Validation(description: nameof(InvalidLccnFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an OCLC number does not have a valid OCLC format.
|
||||
/// </summary>
|
||||
public static Error InvalidOclcFormat => Error.Validation(description: nameof(InvalidOclcFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an Open Library identifier does not have a valid format.
|
||||
/// </summary>
|
||||
public static Error InvalidOpenLibraryId => Error.Validation(description: nameof(InvalidOpenLibraryId));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a LibraryThing identifier exceeds the maximum length of 50 characters.
|
||||
/// </summary>
|
||||
public static Error LibraryThingIdMustBeMaximum50CharactersLong => Error.Validation(description: nameof(LibraryThingIdMustBeMaximum50CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a Google Books identifier must be exactly 12 characters long.
|
||||
/// </summary>
|
||||
public static Error GoogleBooksIdMustBe12CharactersLong => Error.Validation(description: nameof(GoogleBooksIdMustBe12CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a Google Books identifier contains characters other than letters, digits, underscores and hyphens.
|
||||
/// </summary>
|
||||
public static Error InvalidGoogleBooksIdFormat => Error.Validation(description: nameof(InvalidGoogleBooksIdFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a Barnes and Noble identifier must be exactly 10 characters long.
|
||||
/// </summary>
|
||||
public static Error BarnesAndNoblesIdMustBe10CharactersLong => Error.Validation(description: nameof(BarnesAndNoblesIdMustBe10CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a Barnes and Noble identifier is not made of digits.
|
||||
/// </summary>
|
||||
public static Error InvalidBarnesAndNoblesIdFormat => Error.Validation(description: nameof(InvalidBarnesAndNoblesIdFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that an Apple Books identifier does not have the expected id prefix followed by digits.
|
||||
/// </summary>
|
||||
public static Error InvalidAppleBooksIdFormat => Error.Validation(description: nameof(InvalidAppleBooksIdFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the publisher of a book exceeds the maximum length of 100 characters.
|
||||
/// </summary>
|
||||
public static Error PublisherMustBeMaximum100CharactersLong => Error.Validation(description: nameof(PublisherMustBeMaximum100CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the page count of a book must be greater than zero.
|
||||
/// </summary>
|
||||
public static Error PageCountMustBeGreaterThanZero => Error.Validation(description: nameof(PageCountMustBeGreaterThanZero));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a book format is not a recognized value.
|
||||
/// </summary>
|
||||
public static Error UnknownBookFormat => Error.Validation(description: nameof(UnknownBookFormat));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the edition of a book exceeds the maximum length of 50 characters.
|
||||
/// </summary>
|
||||
public static Error EditionMustBeMaximum50CharactersLong => Error.Validation(description: nameof(EditionMustBeMaximum50CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the volume number of a book must be greater than zero.
|
||||
/// </summary>
|
||||
public static Error VolumeNumberMustBeGreaterThanZero => Error.Validation(description: nameof(VolumeNumberMustBeGreaterThanZero));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the book library cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error BookLibraryCannotBeNull => Error.Validation(description: nameof(BookLibraryCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the file path of a book cannot be empty.
|
||||
/// </summary>
|
||||
public static Error BookPathCannotBeEmpty => Error.Validation(description: nameof(BookPathCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the file path of a book exceeds the maximum length of 2048 characters.
|
||||
/// </summary>
|
||||
public static Error BookPathMustBeMaximum2048CharactersLong => Error.Validation(description: nameof(BookPathMustBeMaximum2048CharactersLong));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a book file path does not reside within any of the content locations of the library.
|
||||
/// </summary>
|
||||
public static Error BookPathMustBeWithinLibraryContentLocations => Error.Validation(description: nameof(BookPathMustBeWithinLibraryContentLocations));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that a book identifier cannot be empty.
|
||||
/// </summary>
|
||||
public static Error BookIdCannotBeEmpty => Error.Validation(description: nameof(BookIdCannotBeEmpty));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the cover image of a book cannot be <see langword="null"/>.
|
||||
/// </summary>
|
||||
public static Error BookCoverCannotBeNull => Error.Validation(description: nameof(BookCoverCannotBeNull));
|
||||
|
||||
/// <summary>
|
||||
/// Gets the error that reports that the requested book does not exist.
|
||||
/// </summary>
|
||||
public static Error BookNotFound => Error.NotFound(description: nameof(BookNotFound));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user