Commit With Frontend and Backend in MERN

This commit is contained in:
sanikapendurkar
2025-02-10 14:24:56 +05:30
commit 0f4e1a3183
2518 changed files with 448667 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
/*!
* Module dependencies.
*/
'use strict';
const MongooseError = require('./mongooseError');
/**
* InvalidSchemaOption Error constructor.
* @param {String} name
* @api private
*/
class InvalidSchemaOptionError extends MongooseError {
constructor(name, option) {
const msg = `Cannot create use schema for property "${name}" because the schema has the ${option} option enabled.`;
super(msg);
}
}
Object.defineProperty(InvalidSchemaOptionError.prototype, 'name', {
value: 'InvalidSchemaOptionError'
});
/*!
* exports
*/
module.exports = InvalidSchemaOptionError;