1.0.0 • Published 10 years ago
kafka-errors v1.0.0
kafka-errors
A way to map kafka error codes to actual Error objects
Install
$ npm install [--save] kafka-errorsUsage
'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 testAuthor
Evan Lucas
License
MIT (See LICENSE for more info)
1.0.0
10 years ago