<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 18.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BackgroundAssets",
  "identifier" : "/documentation/BackgroundAssets/BAErrorCode",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Background Assets"
    ],
    "preciseIdentifier" : "c:@E@BAErrorCode"
  },
  "title" : "BAErrorCode"
}
-->

# BAErrorCode

```
enum BAErrorCode
```

## Topics

### Error codes

[`case callFromExtensionNotAllowed`](/documentation/BackgroundAssets/BAErrorCode/callFromExtensionNotAllowed)

[`case callFromInactiveProcessNotAllowed`](/documentation/BackgroundAssets/BAErrorCode/callFromInactiveProcessNotAllowed)

[`case callerConnectionInvalid`](/documentation/BackgroundAssets/BAErrorCode/callerConnectionInvalid)

[`case callerConnectionNotAccepted`](/documentation/BackgroundAssets/BAErrorCode/callerConnectionNotAccepted)

[`case downloadAlreadyFailed`](/documentation/BackgroundAssets/BAErrorCode/downloadAlreadyFailed)

[`case downloadAlreadyScheduled`](/documentation/BackgroundAssets/BAErrorCode/downloadAlreadyScheduled)

[`case downloadBackgroundActivityProhibited`](/documentation/BackgroundAssets/BAErrorCode/downloadBackgroundActivityProhibited)

[`case downloadEssentialDownloadNotPermitted`](/documentation/BackgroundAssets/BAErrorCode/downloadEssentialDownloadNotPermitted)

[`case downloadFailedToStart`](/documentation/BackgroundAssets/BAErrorCode/downloadFailedToStart)

[`case downloadInvalid`](/documentation/BackgroundAssets/BAErrorCode/downloadInvalid)

[`case downloadNotScheduled`](/documentation/BackgroundAssets/BAErrorCode/downloadNotScheduled)

[`case downloadWouldExceedAllowance`](/documentation/BackgroundAssets/BAErrorCode/downloadWouldExceedAllowance)

[`case sessionDownloadAllowanceExceeded`](/documentation/BackgroundAssets/BAErrorCode/sessionDownloadAllowanceExceeded)

[`case sessionDownloadDisallowedByAllowance`](/documentation/BackgroundAssets/BAErrorCode/sessionDownloadDisallowedByAllowance)

[`case sessionDownloadDisallowedByDomain`](/documentation/BackgroundAssets/BAErrorCode/sessionDownloadDisallowedByDomain)

[`case sessionDownloadNotPermittedBeforeAppLaunch`](/documentation/BackgroundAssets/BAErrorCode/sessionDownloadNotPermittedBeforeAppLaunch)

### Initializers

[`init?(rawValue: Int)`](/documentation/BackgroundAssets/BAErrorCode/init(rawValue:))

### Enumeration Cases

[`case downloadDoesNotExist`](/documentation/BackgroundAssets/BAErrorCode/downloadDoesNotExist)

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

---

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)