[**Documentation**](../../../README)

***

[Documentation](../../../README) / [@zerotal/notifications](../README) / NotificationDeliveryError

# Class: NotificationDeliveryError

Defined in: [notifications/src/errors.ts:43](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/errors.ts#L43)

Thrown when a channel's delivery to its provider fails (non-2xx response or provider error).

## Extends

- [`NotificationError`](NotificationError)

## Constructors

### Constructor

> **new NotificationDeliveryError**(`message`, `context?`): `NotificationDeliveryError`

Defined in: [notifications/src/errors.ts:44](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/notifications/src/errors.ts#L44)

#### Parameters

##### message

`string`

##### context?

`Record`\<`string`, `unknown`\>

#### Returns

`NotificationDeliveryError`

#### Overrides

[`NotificationError`](NotificationError).[`constructor`](NotificationError#constructor)

## Properties

### code

> `readonly` **code**: `string`

Defined in: [core/src/errors/ZerotalError.ts:18](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L18)

#### Inherited from

[`NotificationError`](NotificationError).[`code`](NotificationError#code)

***

### status

> `readonly` **status**: `number` = `500`

Defined in: [core/src/errors/ZerotalError.ts:19](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L19)

#### Inherited from

[`NotificationError`](NotificationError).[`status`](NotificationError#status)

***

### context?

> `readonly` `optional` **context?**: `Record`\<`string`, `unknown`\>

Defined in: [core/src/errors/ZerotalError.ts:20](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/core/src/errors/ZerotalError.ts#L20)

#### Inherited from

[`NotificationError`](NotificationError).[`context`](NotificationError#context)
