refactor: sale estimates to nestjs

This commit is contained in:
Ahmed Bouhuolia
2024-12-22 14:16:01 +02:00
parent 8a12caf48d
commit 336171081e
69 changed files with 4998 additions and 497 deletions

View File

@@ -0,0 +1,14 @@
import { HttpStatus } from '@nestjs/common';
export class ServiceError extends Error {
constructor(
public message: string,
private status: HttpStatus = HttpStatus.INTERNAL_SERVER_ERROR,
) {
super(message);
}
getStatus(): HttpStatus {
return this.status;
}
}