new LibrdKafkaError(e)
Representation of a librdkafka error
This can be created by giving either another error to piggy-back on. In this situation it tries to parse the error string to figure out the intent. However, more usually, it is constructed by an error object created by a C++ Baton.
Parameters:
Name | Type | Description |
---|---|---|
e |
object | error | An object or error to wrap |
Properties:
Name | Type | Description |
---|---|---|
message |
string | The error message |
code |
number | The error code. |
origin |
string | The origin, whether it is local or remote |
- See:
-
- RdKafka.LibrdKafkaError.codes For a list of error codes that can be returned, to compare against while handling this error.