UNPKG

kafka-node

Version:

Client for Apache Kafka v0.9.x, v0.10.x and v0.11.x

21 lines (17 loc) 645 B
var util = require('util'); var NestedError = require('nested-error-stacks'); /** * Failed to register the consumer * * @param {String} message A message describing the problem with the registration of the consumer * @param {Error} error An error related to the registration of the consumer * * @constructor */ var FailedToRegisterConsumerError = function (message, nested) { NestedError.call(this, message, nested); this.message = message; }; util.inherits(FailedToRegisterConsumerError, NestedError); FailedToRegisterConsumerError.prototype.name = 'FailedToRegisterConsumerError'; module.exports = FailedToRegisterConsumerError;