Documentation / @zerotal/notifications / NotificationContractError
Class: NotificationContractError
Defined in: notifications/src/errors.ts:64
Thrown when a notification routes to a channel whose representation method
(e.g. toMail()) hasn't been implemented on the notification class.
Extends
Constructors
Constructor
new NotificationContractError(
notification,method,channel):NotificationContractError
Defined in: notifications/src/errors.ts:65
Parameters
notification
string
method
string
channel
string
Returns
NotificationContractError
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