import { ConflictException } from '@nestjs/common' ; import { ErrorType } from '../../enums' ; export class PermissionExistsException extends ConflictException { constructor ( slug ) { super ( { errorType : ErrorType . PermissionExists , message : `There's a permission with slug '${ slug }'` , } ) ; } }