Interface: OsfqlFailure
@kortexya/reasoninglayer / OsfqlFailure
Interface: OsfqlFailure
Section titled “Interface: OsfqlFailure”Defined in: src/types/osfql.ts:1640
The parsed body of an OSFQL failure, carried by OsfqlError.
Remarks
Section titled “Remarks”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.
Example
Section titled “Example”const failure: OsfqlFailure = { errorType: 'row_cap', message: 'OSFQL row cap exceeded: …', maxRows: 1000,};Properties
Section titled “Properties”atomicRefusal?
Section titled “atomicRefusal?”
optionalatomicRefusal?: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
Section titled “errorType”errorType:
OsfqlErrorType
Defined in: src/types/osfql.ts:1642
The class of the failure.
maxRows?
Section titled “maxRows?”
optionalmaxRows?:number
Defined in: src/types/osfql.ts:1648
The row cap the program ran under. Present only with errorType: 'row_cap'.
message
Section titled “message”message:
string
Defined in: src/types/osfql.ts:1644
The engine’s own sentence.
profile?
Section titled “profile?”
optionalprofile?: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.
refusal?
Section titled “refusal?”
optionalrefusal?:OsfqlRefusal
Defined in: src/types/osfql.ts:1646
The typed write refusal, when the failure is one.
sortDeleteRefusal?
Section titled “sortDeleteRefusal?”
optionalsortDeleteRefusal?: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.