♻️ refactor(account, order, plan, profile, support, email): restructure application modules and enhance error handling
Updated Docker configuration, refactored middleware for improved error handling, and restructured account, order, plan, profile, and support modules, including their routes, services, and validations. Enhanced email processing queues and utilities for token generation, pagination, and response management to streamline the application architecture and enhance maintainability.
This commit is contained in:
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
export class AppError extends Error {
|
||||
statusCode;
|
||||
constructor(message, statusCode, stack = '') {
|
||||
super(message);
|
||||
this.statusCode = statusCode;
|
||||
if (stack) {
|
||||
this.stack = stack;
|
||||
}
|
||||
else {
|
||||
Error.captureStackTrace(this, this.constructor);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user