Files
ustk-todolist/errors/index.js
2018-05-17 12:13:14 +03:00

10 lines
202 B
JavaScript

class NotFoundError extends Error {
constructor(...args) {
super(...args);
Error.captureStackTrace(this, NotFoundError);
this.name = 'NotFound';
}
}
module.exports = { NotFoundError };