Skip to main content
zerotal

Documentation


Documentation / @zerotal/notifications / NotificationDispatchError

Class: NotificationDispatchError

Defined in: notifications/src/errors.ts:99

Thrown when a notification finished dispatching but one or more channels failed. Every channel is attempted regardless — a broken Slack webhook must not cost the recipient their email — so this reports the failures together once the rest have been delivered.

Extends

Constructors

Constructor

new NotificationDispatchError(notification, failures, delivered): NotificationDispatchError

Defined in: notifications/src/errors.ts:100

Parameters

notification

string

failures

object[]

delivered

string[]

Returns

NotificationDispatchError

Overrides

NotificationError.constructor

Properties

code

readonly code: string

Defined in: core/src/errors/ZerotalError.ts:18

Inherited from

NotificationError.code


status

readonly status: number = 500

Defined in: core/src/errors/ZerotalError.ts:19

Inherited from

NotificationError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: core/src/errors/ZerotalError.ts:20

Inherited from

NotificationError.context


notification

readonly notification: string

Defined in: notifications/src/errors.ts:101


failures

readonly failures: object[]

Defined in: notifications/src/errors.ts:102

channel

channel: string

error

error: Error


delivered

readonly delivered: string[]

Defined in: notifications/src/errors.ts:103