MCPcopy
hub / github.com/mongodb/node-mongodb-native / error

Method error

src/sdam/topology_description.ts:309–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307 }
308
309 get error(): MongoError | null {
310 const descriptionsWithError = Array.from(this.servers.values()).filter(
311 (sd: ServerDescription) => sd.error
312 );
313
314 if (descriptionsWithError.length > 0) {
315 return descriptionsWithError[0].error;
316 }
317
318 return null;
319 }
320
321 /**
322 * Determines if the topology description has any known servers

Callers 15

mainFunction · 0.80
friendlyDateFunction · 0.80
collectTestsFunction · 0.80
crawfish.mjsFile · 0.80
expand-tasks.mjsFile · 0.80
printFunction · 0.80
logFunction · 0.80
mainFunction · 0.80
jquery.jsFile · 0.80
afterEachLoggingMethod · 0.80
initializeFilterMethod · 0.80

Calls 1

filterMethod · 0.45

Tested by

no test coverage detected