iOS SDK Errors
WPPError
The WPPError
represents an error that occurred within the Weavr Push Provisioning SDK.
WPPError
contains the following properties:
Property | Type | Description |
---|---|---|
description | String | A description providing further details of how the error occurred. |
reason | String | A description of the underlying reason for the error. More in depth than the description. |
domain | WeavrProvisioningErrorDomain | A domain of the error, providing an approximate category of where the error occurred. |
underlyingErrorCode | Int? | The error code that the Weavr SDK received from the platform. |
errorCode | WeavrProvisioningErrorCode | The 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 Code | Description | Integer Code |
---|---|---|
notAuthenticated | The token is not present or is rejected during provisioning. | 1001 |
cantBeAddedToAppleWallet | Couldn't add the card to Apple Wallet. | 1002 |
cantFindViewController | Couldn't find the top most view controller to display the provisioning view controllers. | 1003 |
emptyCardholderName | The card holder name provided is empty. | 1004 |
emptyCardDescription | The card description provided is empty. | 1005 |
emptyCardId | The card Id provided is empty. | 1006 |
emptyCardLastFourDigits | The last four digits of the card provided is empty. | 1007 |
cantObtainPaymentPassRequestConfiguration | The payment pass request configuration needed by Apple Wallet to provision the card couldn't be created. | 1008 |
cantCreateProvisioningExtensionPaymentPassEntry | The SDK couldn't create the extension payment pass entry needed by Apple Wallet. | 1009 |
cantCreateProvisioningExtensionPaymentPassRequest | The SDK couldn't create the payment pass request to add the card selected by the user to Apple Wallet. | 1010 |
cardNotEligibleForProvisioning | The card is not eligible for provisioning. | 1011 |
unknown | An unknown error occurred. | 1100 |