/** * Mongoose error * * @api private */ function MongooseError (msg) { Error.call(this); Error.captureStackTrace(this, arguments.callee); this.message = msg; this.name = 'MongooseError'; }; /** * Inherits from Error. */ MongooseError.prototype.__proto__ = Error.prototype; /** * Module exports. */ module.exports = MongooseError;