flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
28
VISUALIZACION/node_modules/mongoose/lib/error/browserMissingSchema.js
generated
vendored
Executable file
28
VISUALIZACION/node_modules/mongoose/lib/error/browserMissingSchema.js
generated
vendored
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
/*!
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
const MongooseError = require('./');
|
||||
|
||||
|
||||
class MissingSchemaError extends MongooseError {
|
||||
/**
|
||||
* MissingSchema Error constructor.
|
||||
*/
|
||||
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