(name)
| 16 | class MissingSchemaError extends MongooseError { |
| 17 | |
| 18 | constructor(name) { |
| 19 | const msg = 'Schema hasn\'t been registered for model "' + name + '".\n' |
| 20 | + 'Use mongoose.model(name, schema)'; |
| 21 | super(msg); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | Object.defineProperty(MissingSchemaError.prototype, 'name', { |
nothing calls this directly
no outgoing calls
no test coverage detected