forked from Shared/esg
14 lines
439 B
TypeScript
14 lines
439 B
TypeScript
import { HttpException, HttpStatus } from '@nestjs/common';
|
|
import { NormalizedErrorDto } from '../dto/normalized-error.dto';
|
|
|
|
export class InquiryException extends HttpException {
|
|
constructor(
|
|
message: string,
|
|
public readonly normalizedError: NormalizedErrorDto,
|
|
status: HttpStatus = HttpStatus.UNPROCESSABLE_ENTITY,
|
|
public readonly provider?: string,
|
|
) {
|
|
super({ message, error: normalizedError }, status);
|
|
}
|
|
}
|