四好公路
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

19 lines
519 B

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;