Commit
This commit is contained in:
commit
d1c8cae2c1
1417 changed files with 326736 additions and 0 deletions
29
node_modules/mongoose/lib/error/browserMissingSchema.js
generated
vendored
Normal file
29
node_modules/mongoose/lib/error/browserMissingSchema.js
generated
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/*!
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const MongooseError = require('./mongooseError');
|
||||
|
||||
/**
|
||||
* MissingSchema Error constructor.
|
||||
*/
|
||||
|
||||
class MissingSchemaError extends MongooseError {
|
||||
|
||||
constructor() {
|
||||
super('Schema hasn\'t been registered for document.\n'
|
||||
+ 'Use mongoose.Document(name, schema)');
|
||||
}
|
||||
}
|
||||
|
||||
Object.defineProperty(MissingSchemaError.prototype, 'name', {
|
||||
value: 'MongooseError'
|
||||
});
|
||||
|
||||
/*!
|
||||
* exports
|
||||
*/
|
||||
|
||||
module.exports = MissingSchemaError;
|
||||
Loading…
Add table
Add a link
Reference in a new issue