(name, option)
| 16 | class InvalidSchemaOptionError extends MongooseError { |
| 17 | |
| 18 | constructor(name, option) { |
| 19 | const msg = `Cannot create use schema for property "${name}" because the schema has the ${option} option enabled.`; |
| 20 | super(msg); |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | Object.defineProperty(InvalidSchemaOptionError.prototype, 'name', { |
nothing calls this directly
no outgoing calls
no test coverage detected