eduverse-backend / src /modules /community /exceptions /comment-not-found.exception.ts
amirhamdi's picture
all works except the comment part
41906d6
Raw
History Blame Contribute Delete
239 Bytes
import { HttpException, HttpStatus } from '@nestjs/common';
export class CommentNotFoundException extends HttpException {
constructor(commentId: number) {
super(`Comment with ID ${commentId} not found`, HttpStatus.NOT_FOUND);
}
}