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

***

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

# Class: UnknownNotificationTypeError

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

Thrown when a queued notification names a class the worker cannot find — the
notification lives outside `app/notifications/` and was never registered.

## Extends

- [`NotificationError`](NotificationError)

## Constructors

### Constructor

> **new UnknownNotificationTypeError**(`type`, `known`): `UnknownNotificationTypeError`

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

#### Parameters

##### type

`string`

##### known

`string`[]

#### Returns

`UnknownNotificationTypeError`

#### 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)
