---
title: "download(_:failedWithError:)"
framework: backgroundassets
role: symbol
role_heading: Instance Method
path: "backgroundassets/badownloadmanagerdelegate/download(_:failedwitherror:)"
---

# download(_:failedWithError:)

Informs the delegate about a failed asset download.

## Declaration

```swift
optional func download(_ download: BADownload, failedWithError error: any Error)
```

## Parameters

- `download`: The failed asset download.
- `error`: An object that provides detailed information about why the framework isn’t able to download the asset.

## See Also

### Processing concluded downloads

- [download(_:finishedWithFileURL:)](backgroundassets/badownloadmanagerdelegate/download(_:finishedwithfileurl:).md)
