// Autogenerated from vk-api-schema. Please don't edit it manually.
package com.vk.api.sdk.exceptions;

import com.vk.api.sdk.objects.base.Error;

public class ExceptionMapper {
    public static ApiException parseException(Error error) {
        switch(error.getErrorCode()) {
            case 1:
                return new ApiUnknownException(error.getErrorMsg());
            case 2:
                return new ApiDisabledException(error.getErrorMsg());
            case 3:
                return new ApiMethodException(error.getErrorMsg());
            case 4:
                return new ApiSignatureException(error.getErrorMsg());
            case 5:
                return new ApiAuthException(error.getErrorMsg());
            case 6:
                return new ApiTooManyException(error.getErrorMsg());
            case 7:
                return new ApiPermissionException(error.getErrorMsg());
            case 8:
                return new ApiRequestException(error.getErrorMsg());
            case 9:
                return new ApiFloodException(error.getErrorMsg());
            case 10:
                return new ApiServerException(error.getErrorMsg());
            case 11:
                return new ApiEnabledInTestException(error.getErrorMsg());
            case 12:
                return new ApiCompileException(error.getErrorMsg());
            case 13:
                return new ApiRuntimeException(error.getErrorMsg());
            case 14:
                return new ApiCaptchaException(error.getErrorMsg());
            case 15:
                return new ApiAccessException(error.getErrorMsg());
            case 16:
                return new ApiAuthHttpsException(error.getErrorMsg());
            case 17:
                return new ApiAuthValidationException(error.getErrorMsg());
            case 18:
                return new ApiUserDeletedException(error.getErrorMsg());
            case 19:
                return new ApiBlockedException(error.getErrorMsg());
            case 20:
                return new ApiMethodPermissionException(error.getErrorMsg());
            case 21:
                return new ApiMethodAdsException(error.getErrorMsg());
            case 22:
                return new ApiUploadException(error.getErrorMsg());
            case 23:
                return new ApiMethodDisabledException(error.getErrorMsg());
            case 24:
                return new ApiNeedConfirmationException(error.getErrorMsg());
            case 3609:
                return new ApiTokenExtensionRequiredException(error.getErrorMsg());
            case 25:
                return new ApiNeedTokenConfirmationException(error.getErrorMsg());
            case 3610:
                return new ApiUserDeactivatedException(error.getErrorMsg());
            case 27:
                return new ApiGroupAuthException(error.getErrorMsg());
            case 3611:
                return new ApiUserServiceDeactivatedException(error.getErrorMsg());
            case 28:
                return new ApiAppAuthException(error.getErrorMsg());
            case 29:
                return new ApiRateLimitException(error.getErrorMsg());
            case 30:
                return new ApiPrivateProfileException(error.getErrorMsg());
            case 3102:
                return new ApiWallCheckLinkCantDetermineSourceException(error.getErrorMsg());
            case 33:
                return new ApiNotImplementedYetException(error.getErrorMsg());
            case 34:
                return new ApiClientVersionDeprecatedException(error.getErrorMsg());
            case 35:
                return new ApiClientUpdateNeededException(error.getErrorMsg());
            case 36:
                return new ApiTimeoutException(error.getErrorMsg());
            case 37:
                return new ApiUserBannedException(error.getErrorMsg());
            case 38:
                return new ApiUnknownApplicationException(error.getErrorMsg());
            case 39:
                return new ApiUnknownUserException(error.getErrorMsg());
            case 40:
                return new ApiUnknownGroupException(error.getErrorMsg());
            case 41:
                return new ApiAdditionalSignupRequiredException(error.getErrorMsg());
            case 2100:
                return new ApiStickersNotPurchasedException(error.getErrorMsg());
            case 2101:
                return new ApiStickersTooManyFavoritesException(error.getErrorMsg());
            case 2102:
                return new ApiStickersNotFavoriteException(error.getErrorMsg());
            case 1600:
                return new ApiStoryExpiredException(error.getErrorMsg());
            case 1602:
                return new ApiStoryIncorrectReplyPrivacyException(error.getErrorMsg());
            case 1105:
                return new ApiAuthFloodErrorException(error.getErrorMsg());
            case 600:
                return new ApiAdsPermissionException(error.getErrorMsg());
            case 601:
                return new ApiWeightedFloodException(error.getErrorMsg());
            case 602:
                return new ApiAdsPartialSuccessException(error.getErrorMsg());
            case 1114:
                return new ApiAuthAnonymousTokenHasExpiredException(error.getErrorMsg());
            case 603:
                return new ApiAdsSpecificException(error.getErrorMsg());
            case 1116:
                return new ApiAuthAnonymousTokenIsInvalidException(error.getErrorMsg());
            case 100:
                return new ApiParamException(error.getErrorMsg());
            case 101:
                return new ApiParamApiIdException(error.getErrorMsg());
            case 103:
                return new ApiLimitsException(error.getErrorMsg());
            case 104:
                return new ApiNotFoundException(error.getErrorMsg());
            case 105:
                return new ApiSaveFileException(error.getErrorMsg());
            case 106:
                return new ApiActionFailedException(error.getErrorMsg());
            case 113:
                return new ApiParamUserIdException(error.getErrorMsg());
            case 114:
                return new ApiParamAlbumIdException(error.getErrorMsg());
            case 629:
                return new ApiAdsObjectDeletedException(error.getErrorMsg());
            case 118:
                return new ApiParamServerException(error.getErrorMsg());
            case 119:
                return new ApiParamTitleException(error.getErrorMsg());
            case 121:
                return new ApiParamHashException(error.getErrorMsg());
            case 122:
                return new ApiParamPhotosException(error.getErrorMsg());
            case 125:
                return new ApiParamGroupIdException(error.getErrorMsg());
            case 1150:
                return new ApiParamDocIdException(error.getErrorMsg());
            case 1151:
                return new ApiParamDocDeleteAccessException(error.getErrorMsg());
            case 1152:
                return new ApiParamDocTitleException(error.getErrorMsg());
            case 1153:
                return new ApiParamDocAccessException(error.getErrorMsg());
            case 129:
                return new ApiParamPhotoException(error.getErrorMsg());
            case 1160:
                return new ApiPhotoChangedException(error.getErrorMsg());
            case 140:
                return new ApiParamPageIdException(error.getErrorMsg());
            case 141:
                return new ApiAccessPageException(error.getErrorMsg());
            case 1170:
                return new ApiTooManyListsException(error.getErrorMsg());
            case 146:
                return new ApiMobileNotActivatedException(error.getErrorMsg());
            case 147:
                return new ApiInsufficientFundsException(error.getErrorMsg());
            case 148:
                return new ApiAccessMenuException(error.getErrorMsg());
            case 150:
                return new ApiParamTimestampException(error.getErrorMsg());
            case 171:
                return new ApiFriendsListIdException(error.getErrorMsg());
            case 173:
                return new ApiFriendsListLimitException(error.getErrorMsg());
            case 174:
                return new ApiFriendsAddYourselfException(error.getErrorMsg());
            case 175:
                return new ApiFriendsAddInEnemyException(error.getErrorMsg());
            case 176:
                return new ApiFriendsAddEnemyException(error.getErrorMsg());
            case 177:
                return new ApiFriendsAddNotFoundException(error.getErrorMsg());
            case 180:
                return new ApiParamNoteIdException(error.getErrorMsg());
            case 181:
                return new ApiAccessNoteException(error.getErrorMsg());
            case 182:
                return new ApiAccessNoteCommentException(error.getErrorMsg());
            case 183:
                return new ApiAccessCommentException(error.getErrorMsg());
            case 700:
                return new ApiGroupChangeCreatorException(error.getErrorMsg());
            case 701:
                return new ApiGroupNotInClubException(error.getErrorMsg());
            case 702:
                return new ApiGroupTooManyOfficersException(error.getErrorMsg());
            case 703:
                return new ApiGroupNeed2faException(error.getErrorMsg());
            case 704:
                return new ApiGroupHostNeed2faException(error.getErrorMsg());
            case 706:
                return new ApiGroupTooManyAddressesException(error.getErrorMsg());
            case 711:
                return new ApiGroupAppIsNotInstalledInCommunityException(error.getErrorMsg());
            case 200:
                return new ApiAccessAlbumException(error.getErrorMsg());
            case 201:
                return new ApiAccessAudioException(error.getErrorMsg());
            case 714:
                return new ApiGroupInviteLinksNotValidException(error.getErrorMsg());
            case 203:
                return new ApiAccessGroupException(error.getErrorMsg());
            case 204:
                return new ApiAccessVideoException(error.getErrorMsg());
            case 205:
                return new ApiAccessMarketException(error.getErrorMsg());
            case 210:
                return new ApiWallAccessPostException(error.getErrorMsg());
            case 211:
                return new ApiWallAccessCommentException(error.getErrorMsg());
            case 212:
                return new ApiWallAccessRepliesException(error.getErrorMsg());
            case 213:
                return new ApiWallAccessAddReplyException(error.getErrorMsg());
            case 214:
                return new ApiWallAddPostException(error.getErrorMsg());
            case 3800:
                return new ApiFaveAliexpressTagException(error.getErrorMsg());
            case 219:
                return new ApiWallAdsPublishedException(error.getErrorMsg());
            case 220:
                return new ApiWallTooManyRecipientsException(error.getErrorMsg());
            case 221:
                return new ApiStatusNoAudioException(error.getErrorMsg());
            case 222:
                return new ApiWallLinksForbiddenException(error.getErrorMsg());
            case 223:
                return new ApiWallReplyOwnerFloodException(error.getErrorMsg());
            case 224:
                return new ApiWallAdsPostLimitReachedException(error.getErrorMsg());
            case 225:
                return new ApiWallDonutException(error.getErrorMsg());
            case 1251:
                return new ApiAppsAlreadyUnlockedException(error.getErrorMsg());
            case 3300:
                return new ApiRecaptchaException(error.getErrorMsg());
            case 3301:
                return new ApiPhoneValidationNeedException(error.getErrorMsg());
            case 3302:
                return new ApiPasswordValidationNeedException(error.getErrorMsg());
            case 3303:
                return new ApiOtpValidationNeedException(error.getErrorMsg());
            case 232:
                return new ApiLikesReactionCanNotBeAppliedException(error.getErrorMsg());
            case 1256:
                return new ApiAppsSubscriptionNotFoundException(error.getErrorMsg());
            case 3304:
                return new ApiEmailConfirmationNeedException(error.getErrorMsg());
            case 3305:
                return new ApiAssertVotesException(error.getErrorMsg());
            case 1257:
                return new ApiAppsSubscriptionInvalidStatusException(error.getErrorMsg());
            case 1260:
                return new ApiInvalidAddressException(error.getErrorMsg());
            case 250:
                return new ApiPollsAccessException(error.getErrorMsg());
            case 251:
                return new ApiPollsPollIdException(error.getErrorMsg());
            case 252:
                return new ApiPollsAnswerIdException(error.getErrorMsg());
            case 253:
                return new ApiPollsAccessWithoutVoteException(error.getErrorMsg());
            case 260:
                return new ApiAccessGroupsException(error.getErrorMsg());
            case 1310:
                return new ApiCommunitiesCatalogDisabledException(error.getErrorMsg());
            case 1311:
                return new ApiCommunitiesCategoriesDisabledException(error.getErrorMsg());
            case 800:
                return new ApiVideoAlreadyAddedException(error.getErrorMsg());
            case 801:
                return new ApiVideoCommentsClosedException(error.getErrorMsg());
            case 300:
                return new ApiAlbumFullException(error.getErrorMsg());
            case 302:
                return new ApiAlbumsLimitException(error.getErrorMsg());
            case 1900:
                return new ApiPrettyCardsCardNotFoundException(error.getErrorMsg());
            case 1901:
                return new ApiPrettyCardsTooManyCardsException(error.getErrorMsg());
            case 1902:
                return new ApiPrettyCardsCardIsConnectedToPostException(error.getErrorMsg());
            case 1400:
                return new ApiMarketRestoreTooLateException(error.getErrorMsg());
            case 1401:
                return new ApiMarketCommentsClosedException(error.getErrorMsg());
            case 1402:
                return new ApiMarketAlbumNotFoundException(error.getErrorMsg());
            case 1403:
                return new ApiMarketItemNotFoundException(error.getErrorMsg());
            case 1404:
                return new ApiMarketItemAlreadyAddedException(error.getErrorMsg());
            case 1405:
                return new ApiMarketTooManyItemsException(error.getErrorMsg());
            case 1406:
                return new ApiMarketTooManyItemsInAlbumException(error.getErrorMsg());
            case 1407:
                return new ApiMarketTooManyAlbumsException(error.getErrorMsg());
            case 1408:
                return new ApiMarketItemHasBadLinksException(error.getErrorMsg());
            case 1409:
                return new ApiMarketExtendedNotEnabledException(error.getErrorMsg());
            case 1412:
                return new ApiMarketGroupingItemsWithDifferentPropertiesException(error.getErrorMsg());
            case 900:
                return new ApiMessagesUserBlockedException(error.getErrorMsg());
            case 1413:
                return new ApiMarketGroupingAlreadyHasSuchVariantException(error.getErrorMsg());
            case 901:
                return new ApiMessagesDenySendException(error.getErrorMsg());
            case 902:
                return new ApiMessagesPrivacyException(error.getErrorMsg());
            case 1416:
                return new ApiMarketVariantNotFoundException(error.getErrorMsg());
            case 1417:
                return new ApiMarketPropertyNotFoundException(error.getErrorMsg());
            case 907:
                return new ApiMessagesTooOldPtsException(error.getErrorMsg());
            case 908:
                return new ApiMessagesTooNewPtsException(error.getErrorMsg());
            case 909:
                return new ApiMessagesEditExpiredException(error.getErrorMsg());
            case 910:
                return new ApiMessagesTooBigException(error.getErrorMsg());
            case 911:
                return new ApiMessagesKeyboardInvalidException(error.getErrorMsg());
            case 912:
                return new ApiMessagesChatBotFeatureException(error.getErrorMsg());
            case 1425:
                return new ApiMarketGroupingMustContainMoreThanOneItemException(error.getErrorMsg());
            case 913:
                return new ApiMessagesTooLongForwardsException(error.getErrorMsg());
            case 914:
                return new ApiMessagesTooLongMessageException(error.getErrorMsg());
            case 1426:
                return new ApiMarketGroupingItemsMustHaveDistinctPropertiesException(error.getErrorMsg());
            case 1427:
                return new ApiMarketOrdersNoCartItemsException(error.getErrorMsg());
            case 917:
                return new ApiMessagesChatUserNoAccessException(error.getErrorMsg());
            case 1429:
                return new ApiMarketInvalidDimensionsException(error.getErrorMsg());
            case 1430:
                return new ApiMarketCantChangeVkpayStatusException(error.getErrorMsg());
            case 919:
                return new ApiMessagesCantSeeInviteLinkException(error.getErrorMsg());
            case 1431:
                return new ApiMarketShopAlreadyEnabledException(error.getErrorMsg());
            case 920:
                return new ApiMessagesEditKindDisallowedException(error.getErrorMsg());
            case 1432:
                return new ApiMarketShopAlreadyDisabledException(error.getErrorMsg());
            case 921:
                return new ApiMessagesCantFwdException(error.getErrorMsg());
            case 1433:
                return new ApiMarketPhotosCropInvalidFormatException(error.getErrorMsg());
            case 1434:
                return new ApiMarketPhotosCropOverflowException(error.getErrorMsg());
            case 1435:
                return new ApiMarketPhotosCropSizeTooLowException(error.getErrorMsg());
            case 924:
                return new ApiMessagesCantDeleteForAllException(error.getErrorMsg());
            case 925:
                return new ApiMessagesChatNotAdminException(error.getErrorMsg());
            case 1438:
                return new ApiMarketNotEnabledException(error.getErrorMsg());
            case 927:
                return new ApiMessagesChatNotExistException(error.getErrorMsg());
            case 931:
                return new ApiMessagesCantChangeInviteLinkException(error.getErrorMsg());
            case 932:
                return new ApiMessagesGroupPeerAccessException(error.getErrorMsg());
            case 1446:
                return new ApiMarketAlbumMainHiddenException(error.getErrorMsg());
            case 935:
                return new ApiMessagesChatUserNotInChatException(error.getErrorMsg());
            case 936:
                return new ApiMessagesContactNotFoundException(error.getErrorMsg());
            case 939:
                return new ApiMessagesMessageRequestAlreadySentException(error.getErrorMsg());
            case 940:
                return new ApiMessagesTooManyPostsException(error.getErrorMsg());
            case 942:
                return new ApiMessagesCantPinOneTimeStoryException(error.getErrorMsg());
            case 943:
                return new ApiMessagesIntentCantUseException(error.getErrorMsg());
            case 944:
                return new ApiMessagesIntentLimitOverflowException(error.getErrorMsg());
            case 945:
                return new ApiMessagesChatDisabledException(error.getErrorMsg());
            case 946:
                return new ApiMessagesChatUnsupportedException(error.getErrorMsg());
            case 947:
                return new ApiMessagesMemberAccessToGroupDeniedException(error.getErrorMsg());
            case 949:
                return new ApiMessagesCantEditPinnedYetException(error.getErrorMsg());
            case 950:
                return new ApiMessagesPeerBlockedReasonByTimeException(error.getErrorMsg());
            case 962:
                return new ApiMessagesUserNotDonException(error.getErrorMsg());
            case 2000:
                return new ApiCallbackApiServersLimitException(error.getErrorMsg());
            case 500:
                return new ApiVotesPermissionException(error.getErrorMsg());
            default:
                return new ApiException(error.getErrorCode(), error.getErrorMsg());
        }
    }
}
