kafka-node
Version:
Client for Apache Kafka v0.8+
20 lines (16 loc) • 519 B
JavaScript
var util = require('util');
/**
* One or more topics did not exist for the requested action
*
* @param {String|String[]} topics Either an array or single topic name
*
* @constructor
*/
var TopicsNotExistError = function (topics) {
Error.captureStackTrace(this, this);
this.topics = topics;
this.message = 'The topic(s) ' + topics.toString() + ' do not exist';
};
util.inherits(TopicsNotExistError, Error);
TopicsNotExistError.prototype.name = 'TopicsNotExistError';
module.exports = TopicsNotExistError;