file module import { HttpException , HttpStatus } from '@nestjs/common' ; class classdesc example example export class ValidationException extends HttpException { constructor ( error ? ) { super ( error || 'Parameter verification failure' , HttpStatus . BAD_REQUEST ) ; } }