Versions in this module Expand all Collapse all v0 v0.0.1 Jun 7, 2024 Changes in this version + var ErrAnimeDoesNotExist = NewError(http.StatusNotFound, `anime_does_not_exist`) + var ErrEpisodeNameRequired = NewError(http.StatusBadRequest, `episode_name_is_required`) + var ErrExpectedCharButGotString = NewError(http.StatusBadRequest, `expected_char_but_got_string`) + var ErrFilterEitherIDorTitle = NewError(http.StatusBadRequest, `filter_either_id_or_title`) + var ErrFilterFormatMustBeGreaterThan0 = ErrMustBeGreaterThan(`filter_format`, 0) + var ErrFilterGenreIDsMustBeGreaterThan0 = ErrMustBeGreaterThan(`filter_genre_ids`, 0) + var ErrFilterIDsMustBeGreaterThan0 = ErrMustBeGreaterThan(`filter_ids`, 0) + var ErrFilterNextAiringDateGteMustBeGreaterThan0 = ErrMustBeGreaterThan(`filter_next_airing_date_gte`, 0) + var ErrFilterNextAiringDateLteMustBeGreaterThan0 = ErrMustBeGreaterThan(`filter_next_airing_date_lte`, 0) + var ErrFilterOrderByUnexpectedValue = NewError(http.StatusBadRequest, `filter_orderby_unexpected_value`) + var ErrFilterSeasonMustBeGreaterThan0 = ErrMustBeGreaterThan(`filter_season`, 0) + var ErrFilterSeasonYearMustBeGreaterThan0 = ErrMustBeGreaterThan(`filter_season`, 0) + var ErrFilterStatusMustBeGreaterThan0 = ErrMustBeGreaterThan(`filter_status`, 0) + var ErrFilterStudioIDsMustBeGreaterThan0 = ErrMustBeGreaterThan(`filter_studio_ids`, 0) + var ErrFilterTitleSpecifiedButEmpty = NewError(http.StatusBadRequest, `filter_title_specified_but_empty`) + var ErrFilterUnexpectedParse = NewError(http.StatusBadRequest, `filter_unexpected_body`) + var ErrIdentifierMustBeNumeric = NewError(http.StatusBadRequest, `id_must_be_numeric`) + var ErrJobTaskAlreadyDisabled = NewError(http.StatusBadRequest, `job_task_already_disabled`) + var ErrJobTaskAlreadyRunning = NewError(http.StatusBadRequest, `job_task_already_running`) + var ErrJobTaskIsDisabled = NewError(http.StatusBadRequest, `job_task_is_disabled`) + var ErrJobTaskIsNotDisabled = NewError(http.StatusBadRequest, `job_task_is_not_disabled`) + var ErrJobTaskNotFound = NewError(http.StatusNotFound, `job_task_not_found`) + var ErrJobTaskNotRunning = NewError(http.StatusBadRequest, `job_task_not_running`) + var ErrLibraryAnimeIDGreaterThan0 = NewError(http.StatusBadRequest, `library_anime_id_must_be_greater_than_0`) + var ErrLibraryExpectedDeletedAtOrAnimeID = NewError(http.StatusBadRequest, `library_expected_deleted_at_or_anime_id`) + var ErrLibraryTitleMissing = NewError(http.StatusBadRequest, `library_title_missing`) + var ErrOrderByDirectionUnexpectedValue = NewError(http.StatusBadRequest, `order_by_direction_unexpected_value`) + var ErrPageElementsCannotBeGreaterThan100 = NewError(http.StatusBadRequest, `elements_must_be_less_than_100`) + var ErrPreferencesAnimeIDIsRequired = NewError(http.StatusBadRequest, `preferences_anime_id_is_required`) + var ErrPreferencesUnexpectedPayload = NewError(http.StatusBadRequest, `preferences_unexpected_payload`) + var ErrPubSubAlreadySubbedToTopic = NewError(http.StatusBadRequest, `pubsub_already_subbed_to_topic`) + var ErrPubSubNotSubbedToTopic = NewError(http.StatusBadRequest, `pubsub_not_subbed_to_topic`) + var ErrPubSubTopicNotFound = NewError(http.StatusNotFound, `pubsub_topic_not_found`) + var ErrRecordNotFound = NewError(http.StatusNotFound, `record_not_found`) + var ErrRunnerIdentRequired = NewError(http.StatusBadRequest, `runner_ident_is_required`) + var ErrRunnerIsNotConnected = NewError(http.StatusConflict, `runner_is_not_connected`) + var ErrRunnerNotFound = NewError(http.StatusNotFound, `runner_not_found`) + var ErrRunnerTransferIsNotOwned = NewError(http.StatusFailedDependency, `runner_transfer_is_not_owned`) + var ErrSomethingWentWrong = NewError(http.StatusInternalServerError, `something_went_wrong`) + var ErrThirdPartyAnimeDoesNotExist = NewError(http.StatusNotFound, `third_party_anime_does_not_exist`) + var ErrThirdPartyExpectedOneOfTheIds = NewError(http.StatusBadRequest, `third_party_expected_either_one_of_the_ids`) + var ErrThirdPartyIntegrationError = NewError(http.StatusFailedDependency, `third_party_integration`) + var ErrTitleExpectedOneOfTheIds = NewError(http.StatusBadRequest, `title_expected_either_one_of_the_ids`) + var ErrTitleIDMissing = NewError(http.StatusBadRequest, `title_id_missing`) + var ErrTitleMustNotBeReviewedBeforeDeletion = NewError(http.StatusBadRequest, `title_must_be_reviewed_before_delete`) + var ErrTitleNotFound = NewError(http.StatusNotFound, `title_not_found`) + var ErrUnchangedValue = NewError(http.StatusBadRequest, `unchanged_value`) + var ErrVideoDoesNotExist = NewError(http.StatusNotFound, `video_does_not_exist`) + var ErrVideoPathRequired = NewError(http.StatusBadRequest, `video_path_is_required`) + var ErrWrongContextDataType = NewError(http.StatusInternalServerError, `wrong_context_data_type`) + func ErrExpectedStatusCodeOkButGot(statusCode int) error + func ErrMustBeGreaterThan(prefix string, than int) error + func ErrTitleNotFoundWith(name string, seasonNumber *string, year *int) error + func NewError(code int, key string, errors ...error) error + type Error struct + func (e *Error) Code() int + func (e *Error) Error() string + func (e *Error) Is(err error) bool + func (e *Error) Uwnrap() error