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

31 lines
486 B
JavaScript

/*!
* Module dependencies.
*/
'use strict';
const MongooseError = require('./');
class OverwriteModelError extends MongooseError {
/**
* OverwriteModel Error constructor.
* @param {String} name
* @api private
*/
constructor(name) {
super('Cannot overwrite `' + name + '` model once compiled.');
}
}
Object.defineProperty(OverwriteModelError.prototype, 'name', {
value: 'OverwriteModelError'
});
/*!
* exports
*/
module.exports = OverwriteModelError;