1234567891011121314151617181920212223242526272829 |
- /*!
- * 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;
|