Skip to content

Interface: OsfqlFailure

@kortexya/reasoninglayer


@kortexya/reasoninglayer / OsfqlFailure

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

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:1660

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:1642

The class of the failure.


optional maxRows?: number

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

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


message: string

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

The engine’s own sentence.


optional profile?: OsfqlProfile

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

Completed native observations retained on failure, when the request set OsfqlRequest.profile. An empty report may mean a refusal before execution or a worker still running at the backstop.


optional refusal?: OsfqlRefusal

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

The typed write refusal, when the failure is one.


optional sortDeleteRefusal?: SortDeleteRefusalDto

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

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