* MissingSchema Error constructor. * @param {String} name * @api private
(name)
| 14 | * @api private |
| 15 | */ |
| 16 | constructor(name) { |
| 17 | const msg = 'Schema hasn\'t been registered for model "' + name + '".\n' |
| 18 | + 'Use mongoose.model(name, schema)'; |
| 19 | super(msg); |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | Object.defineProperty(MissingSchemaError.prototype, 'name', { |
nothing calls this directly
no outgoing calls
no test coverage detected