MCPcopy Index your code
hub / github.com/JS-DevTools/ono / MyCustomError

Class MyCustomError

test/specs/stack.spec.js:72–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71 function makeOuterError (originalError) {
72 class MyCustomError extends Error {
73 constructor (message) {
74 super(message);
75 this.stack = undefined;
76 }
77 }
78
79 let myCustomOno = new Ono(MyCustomError);
80 return myCustomOno(originalError, "Oops, an error happened.");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…