Skip to main content

iOS SDK Errors

WPPError

The WPPError represents an error that occurred within the Weavr Push Provisioning SDK.

WPPError contains the following properties:

PropertyTypeDescription
descriptionStringA description providing further details of how the error occurred.
reasonStringA description of the underlying reason for the error. More in depth than the description.
domainWeavrProvisioningErrorDomainA domain of the error, providing an approximate category of where the error occurred.
underlyingErrorCodeInt?The error code that the Weavr SDK received from the platform.
errorCodeWeavrProvisioningErrorCodeThe error code as defined by Weavr's SDK.

Error codes

The enum WeavrProvisioningErrorCode outlines a series of error codes that the SDK can surface when something goes wrong. As per the following table:

Error CodeDescriptionInteger Code
cardNotEligibleForProvisioningThe card is not eligible for provisioning.1003
cantFindProviderToUseCouldn't find the provider to use. This can occur when there's a problem obtaining the provider from the API, e.g. a client error or server error.1004
emptyEntriesNo card entries provided by the user.1005
unauthorizedThe token is not present or is rejected during provisioning.2002
missingCardIdThe card Id is empty.2003
missingCardLastFourDigitsThe last four digits of the card provided is empty.2005
missingCardholderNameThe card holder name of the card provided is empty.2006
missingCardDescriptionThe card description of the card provided is empty.2007
cantBeAddedToAppleWalletCouldn't add the card to Apple Wallet.3001
cantFindViewControllerCouldn't find the top most view controller to display the provisioning view controllers.5001
cantObtainPaymentPassRequestConfigurationThe payment pass request configuration needed by Apple Wallet to provision the card couldn't be created.5002
cantCreateProvisioningExtensionPaymentPassEntryThe SDK couldn't create the extension payment pass entry needed by Apple Wallet.5003
cantCreateProvisioningExtensionPaymentPassRequestThe SDK couldn't create the payment pass request to add the card selected by the user to Apple Wallet.5004
unknownAn unknown error occurred.-1