started better error handling and validation

This commit is contained in:
subnub
2024-09-28 08:24:35 -04:00
parent af727291d0
commit 5f443a7101
20 changed files with 215 additions and 65 deletions
+8 -7
View File
@@ -1,12 +1,13 @@
class NotValidDataError extends Error {
code: number;
isCustomError: boolean;
code: number;
constructor(args: any) {
super(args);
constructor(args: any) {
super(args);
this.code = 403;
}
this.code = 403;
this.isCustomError = true;
}
}
export default NotValidDataError;
export default NotValidDataError;