Skip to content

Interface: BulkSortError

@kortexya/reasoninglayer


@kortexya/reasoninglayer / BulkSortError

Defined in: src/types/sorts.ts:737

Error detail for a single sort in a bulk creation request.

error: string

Defined in: src/types/sorts.ts:754

Human-facing explanation. Renderable as-is; not a stable contract.


kind: BulkSortErrorKind

Defined in: src/types/sorts.ts:741

What went wrong, typed. Read this rather than matching on error.


name: string

Defined in: src/types/sorts.ts:739

Sort name that failed, as the request spelled it.


sortCreated: boolean

Defined in: src/types/sorts.ts:752

Whether the sort itself was created.

true for unbound_relation (a created sort with one untyped feature) and for amendment_refused (a sort that existed before and is still there): the sort is in the lattice. Treating that as a failed sort hides a concept the engine holds. Carried on the wire by the engine so a client need not enumerate BulkSortErrorKind to classify a new one.