/
Stameskaaa
/
Server
Обзор
Документация
Войти
/
Stameskaaa
/
Server
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/mongoose/lib/error/parallelValidate.js
31 строка
561 B
Stameskaaa
first
19 июн 2024, 15:02
19 июн 2024, 15:02
ac1472e
Код
Авторство
О чём код?
'use strict'; /*! * Module dependencies. */ const MongooseError = require('./mongooseError'); class ParallelValidateError extends MongooseError { /** * ParallelValidate Error constructor. * * @param {Document} doc * @api private */ constructor(doc) { const msg = 'Can\'t validate() the same doc multiple times in parallel. Document: '; super(msg + doc._id); } } Object.defineProperty(ParallelValidateError.prototype, 'name', { value: 'ParallelValidateError' }); /*! * exports */ module.exports = ParallelValidateError;