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

Function quickstart

error-reporting/quickstart.js:21–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19const {ErrorReporting} = require('@google-cloud/error-reporting');
20
21function quickstart() {
22 try {
23 throw new Error('Something went wrong');
24 } catch (exception) {
25 reportError(exception);
26 }
27}
28
29function reportError(exception) {
30 // Instantiates a client

Callers 1

quickstart.jsFile · 0.70

Calls 1

reportErrorFunction · 0.85

Tested by

no test coverage detected