Skip to content

Instantly share code, notes, and snippets.

@jochemstoel
Forked from tregusti/NotImplementedError.js
Created June 30, 2018 15:02
Show Gist options
  • Save jochemstoel/1a24435ff2512ffd48f82da5450148cb to your computer and use it in GitHub Desktop.
Save jochemstoel/1a24435ff2512ffd48f82da5450148cb to your computer and use it in GitHub Desktop.
function NotImplementedError(message) {
this.message = message || "";
}
NotImplementedError.prototype = Object.create(Error.prototype, {
constructor: { value: NotImplementedError },
name: { value: 'NotImplementedError' },
stack: { get: function() {
return new Error().stack;
}},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment