refactor: wip to nestjs

This commit is contained in:
Ahmed Bouhuolia
2024-12-25 00:43:55 +02:00
parent 336171081e
commit a6932d76f3
249 changed files with 21314 additions and 1616 deletions

View File

@@ -1,14 +1 @@
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;
}
}