Skip to main content

DeadLetterInfo

Defined in: src/interfaces/hooks.interface.ts:70

Context passed to the onDeadLetter callback when a message exhausts all delivery attempts.

Properties

data

data: unknown

Defined in: src/interfaces/hooks.interface.ts:74

Decoded message payload.


deliveryCount

deliveryCount: number

Defined in: src/interfaces/hooks.interface.ts:80

How many times this message was delivered.


error

error: unknown

Defined in: src/interfaces/hooks.interface.ts:78

The error that caused the last handler failure.


headers

headers: MsgHdrs | undefined

Defined in: src/interfaces/hooks.interface.ts:76

Message headers (raw NATS MsgHdrs).


stream

stream: string

Defined in: src/interfaces/hooks.interface.ts:82

The stream this message belongs to.


streamSequence

streamSequence: number

Defined in: src/interfaces/hooks.interface.ts:84

The stream sequence number.


subject

subject: string

Defined in: src/interfaces/hooks.interface.ts:72

The NATS subject the message was published to.


timestamp

timestamp: string

Defined in: src/interfaces/hooks.interface.ts:86

ISO timestamp of the message (derived from msg.info.timestampNanos).