@chelseaapps/recommender documentation
File
src/exceptions/item-not-found.exception.ts
Extends
HttpException
Constructor
import { HttpException, HttpStatus } from '@nestjs/common';
export class ItemNotFoundException extends HttpException {
constructor() {
super(
'The itemId is not present in the item catalog. In many cases, you may consider this code success – it only tells you that nothing has been deleted from the database since the item was already not present',
HttpStatus.NOT_FOUND,
);
}
}Was this helpful?