forked from Shared/esg
Introduce plate, chassis, and third-party car endpoints, a wall-clock inquiry deadline with transport-only retries, and ownership-safe no-match errors so another person's identity never leaks. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
559 B
TypeScript
16 lines
559 B
TypeScript
import { HttpException, HttpStatus } from '@nestjs/common';
|
|
import { AttemptSummaryDto } from '../dto/attempt-summary.dto';
|
|
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,
|
|
public readonly attemptSummary?: AttemptSummaryDto,
|
|
) {
|
|
super({ message, error: normalizedError }, status);
|
|
}
|
|
}
|