| Linux premium331.web-hosting.com 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 Path : /home/livedhms/lmgt/node_modules/mongoose/lib/error/ |
| Current File : /home/livedhms/lmgt/node_modules/mongoose/lib/error/strictPopulate.js |
/*!
* Module dependencies.
*/
'use strict';
const MongooseError = require('./mongooseError');
/**
* Strict mode error constructor
*
* @param {string} path
* @param {string} [msg]
* @inherits MongooseError
* @api private
*/
class StrictPopulateError extends MongooseError {
constructor(path, msg) {
msg = msg || 'Cannot populate path `' + path + '` because it is not in your schema. ' + 'Set the `strictPopulate` option to false to override.';
super(msg);
this.path = path;
}
}
Object.defineProperty(StrictPopulateError.prototype, 'name', {
value: 'StrictPopulateError'
});
module.exports = StrictPopulateError;