1.0.0 • Published 8 years ago

kafka-errors v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

kafka-errors

Build Status Coverage Status

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)