@chelseaapps/recommender documentation

File

src/exceptions/user-not-found.exception.ts

Extends

HttpException

Constructor

import { HttpException, HttpStatus } from '@nestjs/common';

export class UserNotFoundException extends HttpException {
	constructor() {
		super(
			'userId not found in the database and cascadeCreate is false',
			HttpStatus.NOT_FOUND,
		);
	}
}

Was this helpful?