Initial commit

This commit is contained in:
Lorenzo Sanesi
2026-03-26 22:46:03 +01:00
commit 18e0e04700
80 changed files with 13114 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
class AppError extends Error {
constructor(message, statusCode, isOperational = true, errors = null) {
super(message);
this.statusCode = statusCode;
this.isOperational = isOperational;
this.errors = errors;
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = AppError;