import { NotFoundException , PreconditionFailedException } from '@nestjs/common' ; export class PermissionNotFoundException extends NotFoundException { constructor ( permissionId ) { super ( `Permission ${ permissionId } not found` ) ; } } export class PermissionDeleteNotAllowedException extends PreconditionFailedException { constructor ( permissionId ) { super ( `Permission ${ permissionId } cannot be deleted` ) ; } }