Class: KeyDeserializationError

KafkaJS.KeyDeserializationError(e)

EXPERIMENTAL: subject to change or removal.

KeyDeserializationError wraps an error thrown while deserializing a message key. It is reported as the error of the message's deserializedKey.

Constructor

new KeyDeserializationError(e)

This constructor is meant to be used by the library.

Parameters:
Name Type Description
e Error | string

the error thrown by the key deserializer.

Extends

Members

abortable :boolean

Whether the error is abortable (for transactional producer).

Type:
  • boolean
Overrides:

cause :Error|null

The error thrown by the deserializer, or null if it threw a non-Error.

Type:
  • Error | null
Overrides:

code :number

The error code from Librdkafka.

This field should be checked (as opposed to the type of the error) to determine what sort of an error this is.

Type:
  • number
Overrides:
See:

fatal :boolean

Whether the error is fatal (for transactional producer).

Type:
  • boolean
Overrides:

message :string

Message detailing the error.

Type:
  • string
Overrides:

name :string

Name of the error.

Type:
  • string
Overrides:

retriable :boolean

Whether the error is retriable (for transactional producer).

Type:
  • boolean
Overrides:

stack

The stack trace of the error.

Overrides: