Class: KeySerializationError

KafkaJS.KeySerializationError(e)

EXPERIMENTAL: subject to change or removal.

KeySerializationError wraps an error thrown while serializing a message key.

Constructor

new KeySerializationError(e)

This constructor is meant to be used by the library.

Parameters:
Name Type Description
e Error | string

the error thrown by the key serializer.

Extends

Members

abortable :boolean

Whether the error is abortable (for transactional producer).

Type:
  • boolean
Overrides:

cause :Error|null

The error thrown by the serializer, 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: