<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 15.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKitTest",
  "identifier" : "/documentation/StoreKitTest/SKAdTestPostbackResponse/error",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit Test"
    ],
    "preciseIdentifier" : "c:objc(cs)SKAdTestPostbackResponse(py)error"
  },
  "title" : "error"
}
-->

# error

An error the test session reports if sending a test postbacks fails.

```
var error: (any Error)? { get set }
```

## Discussion

If the test session encounters an error when attempting to send the test postback with [`flushPostbacks(responses:)`](/documentation/StoreKitTest/SKAdTestSession/flushPostbacks(responses:)), this property contains an [`SKAdTestError`](/documentation/StoreKitTest/SKAdTestError) error.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)