Function: createOrderingViolationError()
ts
function createOrderingViolationError(
count: number,
firstDetail: string,
violations: BlockingOrderingViolation[],
): OrderingViolationException;Defined in: src/batteries/validation/exceptions.ts:58
Constructs an ordering rejection and attaches its typed blocking violation list.
Parameters
| Parameter | Type | Description |
|---|---|---|
count | number | Number of blocking violations. |
firstDetail | string | Human-readable detail for the first violation. |
violations | BlockingOrderingViolation[] | Complete list of violations that may feed the rejection path. |
Returns
The enriched exception instance.