Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Common AccessDenied = errors.NewService(errors.ErrUnauthorized, "access denied", "access_denied") InvalidGameID = errors.NewService(errors.ErrValidation, "invalid game id", "invalid_game_id") // Settings service SettingsIsEmpty = errors.NewService(errors.ErrInternal, "settings is empty", "settings_is_empty") // Auth, Session and Users UserNotFound = errors.NewService(errors.ErrNotFound, "user not found", "user_not_found") // Feature service FeatureNotFound = errors.NewService(errors.ErrNotFound, "feature not found", "feature_not_found") InvalidFeatureIDs = errors.NewService(errors.ErrValidation, "invalid feature ids", "invalid_feature_ids") ParentIDIsNotDefined = errors.NewService(errors.ErrValidation, "parent id is not defined", "parent_id_is_not_defined") // Game service GameSlugAlreadyExist = errors.NewService(errors.ErrAlreadyExist, "game slug already exist", "game_slug_already_exist") GameNotFound = errors.NewService(errors.ErrNotFound, "game not found", "game_not_found") GamePlatformsNotDefined = errors.NewService(errors.ErrValidation, "game platforms not defined", "game_platforms_not_defined") GameSystemRequirementsNotDefined = errors.NewService(errors.ErrValidation, "game system requirements not defined", "game_system_requirements_not_defined") GamePlayTimeNotDefined = errors.NewService(errors.ErrValidation, "game play time not defined", "game_play_time_not_defined") GameDevelopersNotDefined = errors.NewService(errors.ErrValidation, "game developers not defined", "game_developers_not_defined") GamePublishersNotDefined = errors.NewService(errors.ErrValidation, "game publishers not defined", "game_publishers_not_defined") GameLocalizationsNotDefined = errors.NewService(errors.ErrValidation, "game localizations not defined", "game_localizations_not_defined") GameReleaseDateNotDefined = errors.NewService(errors.ErrValidation, "game release date not defined", "game_release_date_not_defined") // GameRevision service GameRevisionNotFound = errors.NewService(errors.ErrNotFound, "game revision not found", "game_revision_not_found") GameRevisionUniqueSystemRequirements = errors.NewService(errors.ErrValidation, "systemRequirements platform param must be unique", "game_revision_unique_system_requirements") GameRevisionDraftAlreadyExist = errors.NewService(errors.ErrAlreadyExist, "game revision draft already exist", "game_revision_draft_already_exist") // GameRevisionPrice service GameRevisionPriceNotAllowed = errors.NewService(errors.ErrValidation, "game revision price not allowed", "game_revision_price_not_allowed") GameRevisionPriceNotFound = errors.NewService(errors.ErrNotFound, "game revision price not found", "game_revision_price_not_found") GameRevisionPriceChangedHavingActiveDiscounts = errors.NewService(errors.ErrNotFound, "game revision price changed having active discounts", "game_revision_price_changed_having_active_discounts") // GameRevisionL10n service GameRevisionL10nNotFound = errors.NewService(errors.ErrNotFound, "game l10n not found", "game_l10n_not_found") // Game Discount service GameDiscountNotFound = errors.NewService(errors.ErrNotFound, "game discount not found", "game_discount_not_found") GameDiscountAlreadyExists = errors.NewService(errors.ErrAlreadyExist, "game discount already exists", "game_discount_already_exists") // GameStorePublish service GameStorePublishNotFound = errors.NewService(errors.ErrNotFound, "game store publish not found", "game_store_publish_not_found") // GameLicenseService GameLicenseNotFound = errors.NewService(errors.ErrNotFound, "game license not found", "game_license_not_found") GameLicenseAlreadyExist = errors.NewService(errors.ErrAlreadyExist, "game license already exist", "game_license_already_exist") // Genre service GenreNotFound = errors.NewService(errors.ErrNotFound, "genre not found", "genre_not_found") InvalidGenreIDs = errors.NewService(errors.ErrValidation, "invalid genre ids", "invalid_genre_ids") // Tag service TagNotFound = errors.NewService(errors.ErrNotFound, "tag not found", "tag_not_found") InvalidTagIDs = errors.NewService(errors.ErrValidation, "invalid tag ids", "invalid_tag_ids") // GameMedia service MediaNotFound = errors.NewService(errors.ErrNotFound, "media not found", "media_not_found") InvalidMediaType = errors.NewService(errors.ErrValidation, "invalid media type", "invalid_media_type") InvalidMediaIDs = errors.NewService(errors.ErrValidation, "invalid media ids", "invalid_media_ids") InvalidMediaMIMEType = errors.NewService(errors.ErrValidation, "invalid media mime type", "invalid_media_mime_type") InvalidMediaResolution = errors.NewService(errors.ErrValidation, "invalid media resolution", "invalid_media_resolution") InvalidMediaAspectRatio = errors.NewService(errors.ErrValidation, "invalid media aspect ratio", "invalid_media_aspect_ratio") // StoreFront service StoreFrontNotFound = errors.NewService(errors.ErrNotFound, "storefront not found", "storefront_not_found") StoreFrontIsActive = errors.NewService(errors.ErrValidation, "storefront is active", "storefront_is_active") UnknownBlockType = errors.NewService(errors.ErrValidation, "unknown block type", "unknown_block_type") InvalidBlockTitle = errors.NewService(errors.ErrValidation, "invalid block title", "invalid_block_title") InvalidBlockGamesCount = errors.NewService(errors.ErrValidation, "invalid block games count", "invalid_block_games_count") // SocialLinks SocialLinkIncorrectURL = errors.NewService(errors.ErrValidation, "social link incorrect url", "social_link_incorrect_url") // Localization service LocalizationNotFound = errors.NewService(errors.ErrNotFound, "localization not found", "localization_not_found") InvalidLocalizationLanguageCode = errors.NewService(errors.ErrValidation, "invalid localization language code", "invalid_localization_language_code") InvalidLocalizationLanguageIDs = errors.NewService(errors.ErrValidation, "invalid localization language ids", "invalid_localization_language_ids") // Rating service RatingNotFound = errors.NewService(errors.ErrNotFound, "rating not found", "rating_not_found") RatingUndefinedAgency = errors.NewService(errors.ErrNotFound, "undefined agency", "rating_undefined_agency") RatingAgencyUsedMultipleTimes = errors.NewService(errors.ErrValidation, "rating agency used multiple times", "rating_agency_used_multiple_times") RatingUndefinedRating = errors.NewService(errors.ErrNotFound, "undefined rating", "rating_undefined_rating") // Review service ReviewMax3Available = errors.NewService(errors.ErrValidation, "maximum 3 reviews available", "maximum_3_reviews_available") // Document service DocumentNotFound = errors.NewService(errors.ErrNotFound, "document not found", "document_not_found") DocumentAlreadyActivated = errors.NewService(errors.ErrValidation, "document already activated", "document_already_activated") DocumentUnsupportedLanguage = errors.NewService(errors.ErrValidation, "unsupported document language", "document_unsupported_language") DocumentAlreadySigned = errors.NewService(errors.ErrValidation, "document already signed", "document_already_signed") InvalidDocumentID = errors.NewService(errors.ErrValidation, "invalid document id", "invalid_document_id") InvalidDocumentType = errors.NewService(errors.ErrValidation, "invalid document type", "invalid_document_type") EmptyDocumentText = errors.NewService(errors.ErrValidation, "empty document text", "empty_document_text") EmptyDocumentVersion = errors.NewService(errors.ErrValidation, "empty document version", "empty_document_version") EmptyDocumentReason = errors.NewService(errors.ErrValidation, "empty document reason", "empty_document_reason") // Currency service CurrencyNotFound = errors.NewService(errors.ErrNotFound, "currency not found", "currency_not_found") // Post service PostSlugAlreadyExist = errors.NewService(errors.ErrAlreadyExist, "post slug already exist", "post_slug_already_exist") PostNotFound = errors.NewService(errors.ErrNotFound, "post not found", "post_not_found") PostSummaryTooLong = errors.NewService(errors.ErrValidation, "post summary can be up to 180 chars", "post_summary_too_long") PostSlugCannotBeEmpty = errors.NewService(errors.ErrValidation, "post slug cannot be empty", "post_slug_cannot_be_empty") // User info download service UserInfoDownloadStateNotFound = errors.NewService(errors.ErrNotFound, "user info download not found", "user_info_download_not_found") UserInfoDownloadInProgress = errors.NewService(errors.ErrAlreadyExist, "user info download in progress", "user_info_download_in_progress") UserInfoDownloadNotInProgress = errors.NewService(errors.ErrValidation, "user info download not in progress", "user_info_download_not_in_progress") // Language service LanguageNotFound = errors.NewService(errors.ErrNotFound, "language not found", "language_not_found") InvalidLanguageIDs = errors.NewService(errors.ErrValidation, "invalid language ids", "invalid_language_ids") // Discount service DiscountNotFound = errors.NewService(errors.ErrValidation, "discount not found", "discount_not_found") InvalidDiscountID = errors.NewService(errors.ErrValidation, "invalid discount id", "invalid_discount_id") DiscountTitleCannotBeEmpty = errors.NewService(errors.ErrValidation, "discount title cannot be empty", "discount_title_cannot_be_empty") DiscountTypeUnknown = errors.NewService(errors.ErrValidation, "discount type unknown", "discount_type_unknown") DiscountStatusUnknown = errors.NewService(errors.ErrValidation, "discount status unknown", "discount_status_unknown") DiscountStartDateAfterEndDate = errors.NewService(errors.ErrValidation, "discount start date behind end date", "discount_start_date_behind_end_date") CannotDraftStartedDiscount = errors.NewService(errors.ErrValidation, "cannot draft started discount", "cannot_draft_started_discount") CannotUpdateStartedDiscount = errors.NewService(errors.ErrValidation, "cannot update started discount", "cannot_update_started_discount") CannotDeleteStartedDiscount = errors.NewService(errors.ErrValidation, "cannot delete started discount", "cannot_delete_started_discount") CannotStartDiscount = errors.NewService(errors.ErrValidation, "cannot start discount", "cannot_start_discount") CannotArchiveDiscount = errors.NewService(errors.ErrValidation, "cannot archive discount", "cannot_archive_discount") )
Functions ¶
func NewInternal ¶
func NewValidation ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.