---
url: /nestjs-odata/api/generated/functions/batchErrorContext.md
---
# Function: batchErrorContext()

> **batchErrorContext**(`part`): `object`

Defined in: [batch/batch-dispatch.ts:75](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/batch/batch-dispatch.ts#L75)

What the error mapper is told about a failing `$batch` operation.

## Parameters

### part

`Pick`<[`ODataBatchPartContext`](../interfaces/ODataBatchPartContext.md), `"method"` | `"url"` | `"contentId"`>

## Returns

`object`

### contentId?

> `readonly` `optional` **contentId?**: `string`

### method

> `readonly` **method**: `string`

### url

> `readonly` **url**: `string`
