MCPcopy Create free account
hub / github.com/JS-DevTools/ono / getSampleCustomError

Function getSampleCustomError

test/utils/host.js:77–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77function getSampleCustomError () {
78 class MyCustomError extends Error {}
79 return new MyCustomError("THIS IS THE MESSAGE");
80}
81
82function hasKey (error, key) {
83 return (key in error) || (error[key] !== undefined);

Callers 1

host.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…