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.
 
 
 

30 lines
533 B

/*!
* Module dependencies.
*/
var MongooseError = require('../error');
/*!
* OverwriteModel Error constructor.
*
* @inherits MongooseError
*/
function OverwriteModelError (name) {
MongooseError.call(this, 'Cannot overwrite `' + name + '` model once compiled.');
Error.captureStackTrace(this, arguments.callee);
this.name = 'OverwriteModelError';
};
/*!
* Inherits from MongooseError.
*/
OverwriteModelError.prototype.__proto__ = MongooseError.prototype;
/*!
* exports
*/
module.exports = OverwriteModelError;