## errors.OperationFailedError


Items of a batch download or processing run failed.


Usage

``` python
errors.OperationFailedError(
    summary,
    ignore=(),
)
```


Raised by [OperationSummary.raise_on_failure()](summary.OperationSummary.md#s1bursts.summary.OperationSummary.raise_on_failure) once the batch has finished, so it is never a per-item failure itself. The message lists the failed items and their errors. The error carries the whole summary, so the products of the items that succeeded stay within reach.


## Parameters


`summary: OperationSummary[Any]`  
Summary of the batch, with at least one failed item.

`ignore: tuple[type[BaseException], …] = ()`  
Error types whose failures did not raise this error. They are counted in the message but not listed.


## Attributes


`summary`  
Summary of the batch: `summary.products` holds the products created or found, `summary.failed_items` every failure, ignored ones included.

`ignore`  
Error types whose failures did not raise this error.


## Attributes

| Name | Description |
|----|----|
| [failed_items](#failed_items) | Results of the failures that raised this error, each with its source and error. |

------------------------------------------------------------------------


#### failed_items


Results of the failures that raised this error, each with its source and error.


`failed_items: list[ErrorResult]`


## Methods

| Name | Description |
|----|----|
| [__reduce__()](#__reduce__) | Pickle from the summary, which the message is built from, keeping notes. |

------------------------------------------------------------------------


#### \_\_reduce\_\_()


Pickle from the summary, which the message is built from, keeping notes.


Usage

``` python
__reduce__()
```
