eduverse-backend / src /modules /course-materials /exceptions /material-not-found.exception.ts
amirhamdi's picture
all works except for the courses structures
84818f7
Raw
History Blame Contribute Delete
360 Bytes
import { HttpException, HttpStatus } from '@nestjs/common';
export class MaterialNotFoundException extends HttpException {
constructor(materialId: number) {
super(
{
statusCode: HttpStatus.NOT_FOUND,
message: `Material with ID ${materialId} not found`,
error: 'Not Found',
},
HttpStatus.NOT_FOUND,
);
}
}