DeadLetterInfo
Defined in: src/interfaces/hooks.interface.ts:166
Context passed to the onDeadLetter callback when a message exhausts all delivery attempts.
Properties
data
data:
unknown
Defined in: src/interfaces/hooks.interface.ts:170
Decoded message payload.
deliveryCount
deliveryCount:
number
Defined in: src/interfaces/hooks.interface.ts:176
How many times this message was delivered.
error
error:
unknown
Defined in: src/interfaces/hooks.interface.ts:174
The error that caused the last handler failure.
headers
headers:
MsgHdrs|undefined
Defined in: src/interfaces/hooks.interface.ts:172
Message headers (raw NATS MsgHdrs).
stream
stream:
string
Defined in: src/interfaces/hooks.interface.ts:178
The stream this message belongs to.
streamSequence
streamSequence:
number
Defined in: src/interfaces/hooks.interface.ts:180
The stream sequence number.
subject
subject:
string
Defined in: src/interfaces/hooks.interface.ts:168
The NATS subject the message was published to.
timestamp
timestamp:
string
Defined in: src/interfaces/hooks.interface.ts:182
ISO timestamp of the message (derived from msg.info.timestampNanos).