import { HttpException, HttpStatus } from '@nestjs/common'; import { NormalizedErrorDto } from '../dto/normalized-error.dto'; export class ProviderException extends HttpException { constructor( public readonly normalizedError: NormalizedErrorDto, status: HttpStatus = HttpStatus.BAD_GATEWAY, ) { super(normalizedError, status); } }