(name)
| 12 | */ |
| 13 | |
| 14 | function OverwriteModelError(name) { |
| 15 | MongooseError.call(this, 'Cannot overwrite `' + name + '` model once compiled.'); |
| 16 | this.name = 'OverwriteModelError'; |
| 17 | if (Error.captureStackTrace) { |
| 18 | Error.captureStackTrace(this); |
| 19 | } else { |
| 20 | this.stack = new Error().stack; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | /*! |
| 25 | * Inherits from MongooseError. |
nothing calls this directly
no outgoing calls
no test coverage detected