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

***

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

# Class: NotificationChannelUnavailableError

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

Thrown when a channel cannot run because an optional peer package or required
config is missing (e.g. the broadcast channel without `@zerotal/broadcasting`,
or the SMS driver's credential block).

## Extends

- [`NotificationError`](NotificationError)

## Constructors

### Constructor

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

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

#### Parameters

##### message

`string`

#### Returns

`NotificationChannelUnavailableError`

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