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

Method onError

src/cmap/connection.ts:317–319  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

315 }
316
317 public onError(error: Error) {
318 this.cleanup(error);
319 }
320
321 private onClose() {
322 const message = `connection ${this.id} to ${this.address} closed`;

Callers 6

onSocketErrorMethod · 0.95
onTransformErrorMethod · 0.95
writeCommandMethod · 0.95
readManyMethod · 0.95

Calls 1

cleanupMethod · 0.95

Tested by

no test coverage detected