MCPcopy Create free account
hub / github.com/Automattic/mongoose / constructor

Method constructor

lib/error/eachAsyncMultiError.js:22–30  ·  view source on GitHub ↗

* @param {String} connectionString

(errors)

Source from the content-addressed store, hash-verified

20 * @param {String} connectionString
21 */
22 constructor(errors) {
23 let preview = errors.map(e => e.message).join(', ');
24 if (preview.length > 50) {
25 preview = preview.slice(0, 50) + '...';
26 }
27 super(`eachAsync() finished with ${errors.length} errors: ${preview}`);
28
29 this.errors = errors;
30 }
31}
32
33Object.defineProperty(EachAsyncMultiError.prototype, 'name', {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected