kafka-errors
v1.0.0
Published
A way to map kafka error codes to actual Error objects
Downloads
1
Readme
kafka-errors
A way to map kafka error codes to actual Error objects
Install
$ npm install [--save] kafka-errors
Usage
'use strict'
const errors = require('kafka-errors')
console.log(errors.get(2))
Will print the following:
{ name: 'InvalidMessage'
, code: 2
, retriable: true
, message: 'Message contents do not match CRC'
}
Test
$ npm test
Author
Evan Lucas
License
MIT (See LICENSE
for more info)