Skip to content

Interface: OsfqlFailure

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OsfqlFailure

Defined in: src/types/osfql.ts:1169

The parsed body of an OSFQL failure, carried by OsfqlError.

Parsed from the raw snake_case OsfqlErrorResponse (error_type, message, refusal, max_rows, sort_delete_refusal, atomic_refusal). A timeout body is not represented here: it throws DeadlineExceededError.

const failure: OsfqlFailure = {
errorType: 'row_cap',
message: 'OSFQL row cap exceeded: …',
maxRows: 1000,
};

optional atomicRefusal?: OsfqlAtomicRefusal

Defined in: src/types/osfql.ts:1189

Why the program was refused before anything ran (errorType: 'refused', HTTP 400): a DROP SORT or an ALTER SORT … PARENTS beside another statement. The same code OsfqlPreviewResponse.atomicRefusal reports.


errorType: OsfqlErrorType

Defined in: src/types/osfql.ts:1171

The class of the failure.


optional maxRows?: number

Defined in: src/types/osfql.ts:1177

The row cap the program ran under. Present only with errorType: 'row_cap'.


message: string

Defined in: src/types/osfql.ts:1173

The engine’s own sentence.


optional refusal?: OsfqlRefusal

Defined in: src/types/osfql.ts:1175

The typed write refusal, when the failure is one.


optional sortDeleteRefusal?: SortDeleteRefusalDto

Defined in: src/types/osfql.ts:1182

Why a DROP SORT was refused (errorType: 'refused'): the same coded refusal the REST sort delete answers, with its HTTP status.