import { NotFoundException , PreconditionFailedException } from '@nestjs/common' ; export class GroupNotFoundException extends NotFoundException { constructor ( groupId ) { super ( `Group ${ groupId } not found` ) ; } } export class GroupDeleteNotAllowedException extends PreconditionFailedException { constructor ( groupId ) { super ( `Group ${ groupId } cannot be deleted` ) ; } }