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.
29 lines
468 B
29 lines
468 B
|
|
/*!
|
|
* Module dependencies.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const MongooseError = require('./');
|
|
|
|
|
|
class OverwriteModelError extends MongooseError {
|
|
/*!
|
|
* OverwriteModel Error constructor.
|
|
* @param {String} name
|
|
*/
|
|
constructor(name) {
|
|
super('Cannot overwrite `' + name + '` model once compiled.');
|
|
}
|
|
}
|
|
|
|
Object.defineProperty(OverwriteModelError.prototype, 'name', {
|
|
value: 'OverwriteModelError'
|
|
});
|
|
|
|
/*!
|
|
* exports
|
|
*/
|
|
|
|
module.exports = OverwriteModelError;
|
|
|