forked from Shared/esg
12 lines
351 B
TypeScript
12 lines
351 B
TypeScript
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);
|
|
}
|
|
}
|