VouchrErrorCode
enum VouchrErrorCode {}
VouchrErrorCode
is a list of internal error codes that can be returned inside of a VoucherError
.
-
The user is claiming a location based gift and is too far away.
Declaration
Objective-C
VouchrErrorCodeClaimTooFarAway = 100
Swift
case claimTooFarAway = 100
-
Too many requests have been made to the VouchrServer in a short amount of time.
Declaration
Objective-C
VouchrErrorCodeTooManyRequests = 429
Swift
case tooManyRequests = 429
-
API limits exceeded.
Declaration
Objective-C
VouchrErrorCodeLimitsExceeded = 12000
Swift
case limitsExceeded = 12000
-
The user is already registered.
Declaration
Objective-C
VouchrErrorCodeRegisterDuplicateAccount = 12001
Swift
case registerDuplicateAccount = 12001
-
The user is missing a contact method.
Declaration
Objective-C
VouchrErrorCodeRegisterMissingContactMethod = 12002
Swift
case registerMissingContactMethod = 12002
-
The user has not verified their contact method.
Declaration
Objective-C
VouchrErrorCodeRegisterUnverifiedContactMethod = 12003
Swift
case registerUnverifiedContactMethod = 12003
-
The user’s account has been disabled.
Declaration
Objective-C
VouchrErrorCodeRegisterUserDisabled = 12004
Swift
case registerUserDisabled = 12004
-
The user logging in has a duplicate account.
Declaration
Objective-C
VouchrErrorCodeLoginDuplicateAccount = 14001
Swift
case loginDuplicateAccount = 14001
-
The user is missing a contact method.
Declaration
Objective-C
VouchrErrorCodeLoginMissingContactMethod = 14002
Swift
case loginMissingContactMethod = 14002
-
The user has not verified their contact method.
Declaration
Objective-C
VouchrErrorCodeLoginUnverifiedContactMethod = 14003
Swift
case loginUnverifiedContactMethod = 14003
-
The user’s account has been disabled.
Declaration
Objective-C
VouchrErrorCodeLoginUserDisabled = 14004
Swift
case loginUserDisabled = 14004
-
The user is not found and needs to register.
Declaration
Objective-C
VouchrErrorCodeLoginUserNotFound = 14005
Swift
case loginUserNotFound = 14005
-
The product has a bad url.
Declaration
Objective-C
VouchrErrorCodeProductBadUrl = 8001
Swift
case productBadUrl = 8001
-
Failed to look up DNS for the product.
Declaration
Objective-C
VouchrErrorCodeProductDNSLookupFailed = 8002
Swift
case productDNSLookupFailed = 8002
-
Failed to connect to the product API.
Declaration
Objective-C
VouchrErrorCodeProductConnectFailed = 8003
Swift
case productConnectFailed = 8003
-
Failed to find the product.
Declaration
Objective-C
VouchrErrorCodeProductNotFound = 8404
Swift
case productNotFound = 8404
-
Product API temporarily unavailable.
Declaration
Objective-C
VouchrErrorCodeProductRetryLater = 8503
Swift
case productRetryLater = 8503
-
Invalid currency provided for the given Product.
Declaration
Objective-C
VouchrErrorCodeProductInvalidCurrency = 8100
Swift
case productInvalidCurrency = 8100
-
Generic error.
Declaration
Objective-C
VouchrErrorCodeGenericError = 10000
Swift
case genericError = 10000
-
Generic HTTP error.
Declaration
Objective-C
VouchrErrorCodeHttpError = 11000
Swift
case httpError = 11000
-
The gift has already been claimed.
Declaration
Objective-C
VouchrErrorCodeGiftStatusClaimed = 1001
Swift
case giftStatusClaimed = 1001
-
The gift has been removed.
Declaration
Objective-C
VouchrErrorCodeGiftStatusRemoved = 1002
Swift
case giftStatusRemoved = 1002
-
The gift has been frozen.
Declaration
Objective-C
VouchrErrorCodeGiftStatusFrozen = 1003
Swift
case giftStatusFrozen = 1003
-
The gift had an unknown status error.
Declaration
Objective-C
VouchrErrorCodeGiftStatusError = 1004
Swift
case giftStatusError = 1004
-
This user cannot access this gift.
Declaration
Objective-C
VouchrErrorCodeGiftAccessDenied = 1005
Swift
case giftAccessDenied = 1005
-
Failed to find the gift.
Declaration
Objective-C
VouchrErrorCodeGiftNotFound = 1006
Swift
case giftNotFound = 1006
-
The gift has already been claimed.
Declaration
Objective-C
VouchrErrorCodeGiftAlreadyClaimed = 1007
Swift
case giftAlreadyClaimed = 1007
-
This user is no longer able to claim this gift.
Declaration
Objective-C
VouchrErrorCodeGiftUserDisabled = 1008
Swift
case giftUserDisabled = 1008
-
The gift has reached its limit.
Declaration
Objective-C
VouchrErrorCodeGiftLimitReached = 1009
Swift
case giftLimitReached = 1009
-
The gift has a claim date in the future and cannot be claimed until that date is reached.
Declaration
Objective-C
VouchrErrorCodeGiftDateTooSoon = 1010
Swift
case giftDateTooSoon = 1010
-
The user failed to complete the challenge to claim the gift.
Declaration
Objective-C
VouchrErrorCodeGiftChallengeFailed = 1011
Swift
case giftChallengeFailed = 1011
-
Payment information is not ready for the gift.
Declaration
Objective-C
VouchrErrorCodeGiftPaymentNotReady = 1012
Swift
case giftPaymentNotReady = 1012
-
No score was given for the gift, but a score is required.
Declaration
Objective-C
VouchrErrorCodeGiftHasNoRequiredScore = 1013
Swift
case giftHasNoRequiredScore = 1013
-
No photo was given for the gift, but a photo is required.
Declaration
Objective-C
VouchrErrorCodeGiftHasNoRequiredPhoto = 1014
Swift
case giftHasNoRequiredPhoto = 1014
-
The user’s account has been disabled.
Declaration
Objective-C
VouchrErrorCodeUserDisabled = 2001
Swift
case userDisabled = 2001
-
The user’s account was not found.
Declaration
Objective-C
VouchrErrorCodeUserNotFound = 2002
Swift
case userNotFound = 2002
-
The user’s account has a conflicting network.
Declaration
Objective-C
VouchrErrorCodeUserConflictNetwork = 2003
Swift
case userConflictNetwork = 2003
-
The user’s account has a conflicting email.
Declaration
Objective-C
VouchrErrorCodeUserContlictEmail = 2004
Swift
case userContlictEmail = 2004
-
The user’s account has a conflicting network with another account.
Declaration
Objective-C
VouchrErrorCodeUserLinkAssociatedWithOtherAccount = 2005
Swift
case userLinkAssociatedWithOtherAccount = 2005
-
The user’s account does not support linking with this network.
Declaration
Objective-C
VouchrErrorCodeUserLinkUnsupportedNetwork = 2006
Swift
case userLinkUnsupportedNetwork = 2006
-
The user’s account failed to authenticate with the network.
Declaration
Objective-C
VouchrErrorCodeUserLinkInvalidAuth = 2007
Swift
case userLinkInvalidAuth = 2007
-
A bad id was given in the request.
Declaration
Objective-C
VouchrErrorCodeBadId = 3001
Swift
case badId = 3001
-
This request failed authentication and needs to be authorized to continue.
Declaration
Objective-C
VouchrErrorCodeUnauthorized = 3002
Swift
case unauthorized = 3002
-
There was a bad or missing parameter in the request.
Declaration
Objective-C
VouchrErrorCodeBadParam = 3003
Swift
case badParam = 3003
-
The client needs to update before this request can succeed.
Declaration
Objective-C
VouchrErrorCodeUpdateClient = 3004
Swift
case updateClient = 3004
-
This request is not allowed.
Declaration
Objective-C
VouchrErrorCodeForbidden = 3005
Swift
case forbidden = 3005
-
Unknown server exception occurred.
Declaration
Objective-C
VouchrErrorCodeServerException = -10
Swift
case serverException = -10
-
The max quantity for the invite code has already been reached.
Declaration
Objective-C
VouchrErrorCodeInviteCodeQuantity = 6001
Swift
case inviteCodeQuantity = 6001
-
The invite code has expired.
Declaration
Objective-C
VouchrErrorCodeInviteCodeExpire = 6002
Swift
case inviteCodeExpire = 6002
-
The invite code is trying to be used by the creator of the invite code.
Declaration
Objective-C
VouchrErrorCodeInviteCodeClaimerSelf = 6003
Swift
case inviteCodeClaimerSelf = 6003
-
The invite code has a duplicate receiver.
Declaration
Objective-C
VouchrErrorCodeInviteCodeDuplicateTo = 6004
Swift
case inviteCodeDuplicateTo = 6004
-
the invite code has a duplicate claimer.
Declaration
Objective-C
VouchrErrorCodeInviteCodeDuplicateClaimer = 6005
Swift
case inviteCodeDuplicateClaimer = 6005
-
This invite code was not found.
Declaration
Objective-C
VouchrErrorCodeInviteCodeNotFound = 6006
Swift
case inviteCodeNotFound = 6006
-
This promo has already been claimed.
Declaration
Objective-C
VouchrErrorCodePromoClaimed = 7000
Swift
case promoClaimed = 7000
-
This promo has expired.
Declaration
Objective-C
VouchrErrorCodePromoExpired = 7001
Swift
case promoExpired = 7001
-
This promo has not started yet.
Declaration
Objective-C
VouchrErrorCodePromoUnstarted = 7002
Swift
case promoUnstarted = 7002
-
This promo has reached its maximum number of users.
Declaration
Objective-C
VouchrErrorCodePromoExhaused = 7003
Swift
case promoExhaused = 7003
-
This promo code is not available.
Declaration
Objective-C
VouchrErrorCodePromoUnavailable = 7004
Swift
case promoUnavailable = 7004
-
this promo code is invalid.
Declaration
Objective-C
VouchrErrorCodePromoInvalid = 7005
Swift
case promoInvalid = 7005
-
There was an unknown error processing payment.
Declaration
Objective-C
VouchrErrorCodePaymentError = 9000
Swift
case paymentError = 9000
-
There was an error processing the creator’s payment method.
Declaration
Objective-C
VouchrErrorCodePaymentCreatorError = 9100
Swift
case paymentCreatorError = 9100
-
There was an error transferring the payment to the claimer.
Declaration
Objective-C
VouchrErrorCodePaymentClaimerError = 9200
Swift
case paymentClaimerError = 9200
-
There was an error on the server with the payment.
Declaration
Objective-C
VouchrErrorCodePaymentServerError = 9300
Swift
case paymentServerError = 9300
-
An invalid currency was proviced for the Merchant.
Declaration
Objective-C
VouchrErrorCodeMerchantSearchInvalidCurrency = 10100
Swift
case merchantSearchInvalidCurrency = 10100
-
This item was not found in the feed.
Declaration
Objective-C
VouchrErrorCodeFeedItemNotFound = 114004
Swift
case feedItemNotFound = 114004
-
Generic not found error.
Declaration
Objective-C
VouchrErrorCodeGenericNotFound = 99404
Swift
case genericNotFound = 99404
-
Generic timeout error.
Declaration
Objective-C
VouchrErrorCodeRequestTimeoutError = 10408
Swift
case requestTimeoutError = 10408