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