---
url: /nestjs-odata/api/generated/classes/ODataNotImplementedError.md
---
# Class: ODataNotImplementedError

Defined in: [parser/errors.ts:68](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/parser/errors.ts#L68)

Thrown for valid OData syntax the service does not implement (for example `$root`, or a
nested `$compute` inside `$expand`). Answered with `501 Not Implemented` (OData 4.01 Part 1
§9.3.1) instead of being silently ignored.

The message only describes the unsupported part of the caller's own request, so it is sent
to the client as is.

## Extends

* `Error`

## Constructors

### Constructor

> **new ODataNotImplementedError**(`message`): `ODataNotImplementedError`

Defined in: [parser/errors.ts:69](https://github.com/cberd1509/nestjs-odata/blob/a42974292d62fe5da337a603d3b22d57c08cbf68/packages/core/src/parser/errors.ts#L69)

#### Parameters

##### message

`string`

#### Returns

`ODataNotImplementedError`

#### Overrides

`Error.constructor`
