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
Properties
code
readonlycode:string
Defined in: core/src/errors/ZerotalError.ts:18
Inherited from
status
readonlystatus:number=500
Defined in: core/src/errors/ZerotalError.ts:19
Inherited from
context?
readonlyoptionalcontext?:Record<string,unknown>
Defined in: core/src/errors/ZerotalError.ts:20
Inherited from
notification
readonlynotification:string
Defined in: notifications/src/errors.ts:101
failures
readonlyfailures:object[]
Defined in: notifications/src/errors.ts:102
channel
channel:
string
error
error:
Error
delivered
readonlydelivered:string[]
Defined in: notifications/src/errors.ts:103