import { NotFoundException } from "@nestjs/common" ; import * as _ from "lodash" ; export class EntityNotFoundException extends NotFoundException { constructor ( entity , id ? , message ? ) { super ( message || `${ _ . upperFirst ( entity ) } with id #${ id || "?" } not found` ) ; } }