switched error handling over to middleware instead

This commit is contained in:
subnub
2024-09-28 09:33:54 -04:00
parent 5f443a7101
commit 374d735a71
10 changed files with 268 additions and 344 deletions
-2
View File
@@ -1,12 +1,10 @@
class NotValidDataError extends Error {
code: number;
isCustomError: boolean;
constructor(args: any) {
super(args);
this.code = 403;
this.isCustomError = true;
}
}