mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-28 23:57:49 +01:00
update
This commit is contained in:
@@ -6,4 +6,12 @@ class NotFoundError extends Error {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { NotFoundError };
|
||||
class BadRequestError extends Error {
|
||||
constructor(...args) {
|
||||
super(...args);
|
||||
Error.captureStackTrace(this, NotFoundError);
|
||||
this.name = 'BadRequest';
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { NotFoundError, BadRequestError };
|
||||
|
||||
Reference in New Issue
Block a user