{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Errors","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"errors","__idx":0},"children":["Errors"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"taptopaysdkerror","__idx":1},"children":["TapToPaySDKError"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public enum TapToPaySDKError: Error {\n\n    case retryLimitExhausted(Error)\n\n    case connectionProviderRetriesExhausted(Error)\n\n    case connectionProviderFailure\n\n    case connectionProviderError(Error)\n\n    case fetchSessionCredentialsError(Error)\n\n    case sdkUpgradeRequiredError(String)\n\n    case failedToVerifyConnection(Error)\n\n    case connectionSecretNotInitialized\n\n    case tapToPayInitialisationError\n\n    case tapToPaySDKNotInitialised\n\n    case sessionInitialisationError\n\n    case discoverReadersError\n\n    case noProximityReaderFound\n\n    case unableToConnectReader\n\n    case transactionError(String)\n\n    case transactionStatusError(String)\n\n    case unknownUiEvent\n\n    case missingSessionCredentials\n\n    case invalidParameter(String)\n}\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"connectionprovidererror","__idx":2},"children":["ConnectionProviderError"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Failure scenarios that can occur when the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ConnectionProvider"]}," communicates with the POS server."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"public enum ConnectionProviderError: Error {\n  case failedToConnect(error: Error?)\n}\n","lang":"swift"},"children":[]}]},"headings":[{"value":"Errors","id":"errors","depth":1},{"value":"TapToPaySDKError","id":"taptopaysdkerror","depth":2},{"value":"ConnectionProviderError","id":"connectionprovidererror","depth":2}],"frontmatter":{"title":"Errors","seo":{"title":"Errors"}},"lastModified":"2026-09-02T01:02:13.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/in-person-payments/tap-to-pay/ios/sdk/errors","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}