MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/nodejs-docs-samples / errorHandler

Function errorHandler

dlp/categoricalRiskAnalysis.js:115–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 };
114
115 const errorHandler = err => {
116 subscription.removeListener('message', messageHandler);
117 subscription.removeListener('error', errorHandler);
118 reject(err);
119 };
120
121 subscription.on('message', messageHandler);
122 subscription.on('error', errorHandler);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected