mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 19:59:20 +00:00
started migration of user domain to ts
This commit is contained in:
11
backend/src/errors/AppError.ts
Normal file
11
backend/src/errors/AppError.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
class AppError {
|
||||
public readonly message: string;
|
||||
public readonly statusCode: number;
|
||||
|
||||
constructor(message: string, statusCode = 400) {
|
||||
this.message = message;
|
||||
this.statusCode = statusCode;
|
||||
}
|
||||
}
|
||||
|
||||
export default AppError;
|
||||
Reference in New Issue
Block a user