BE/src/exceptions/notFound.exception.ts
Kallesh B S 75a537aab4 pay 2
2025-08-18 20:34:44 +05:30

20 lines
394 B
TypeScript

import { HttpException, HttpStatus } from '@nestjs/common';
export class NotFoundException extends HttpException {
constructor(
message = 'Not Found',
// errorCode = 'INTERNAL_ERROR',
// data: any = null,
) {
super(
{
statusCode: HttpStatus.NOT_FOUND ,
message,
// errorCode,
// data,
},
HttpStatus.NOT_FOUND,
);
}
}