DiagnosticCode
constDiagnosticCode:object
Defined in: libs/runtime/src/diagnostics.ts:50
Codes are stable identifiers a consumer can branch on; messages are for people.
Type Declaration
Section titled “Type Declaration”abstractType
Section titled “abstractType”
readonlyabstractType:"typedblite.abstract-type"='typedblite.abstract-type'
insert $x isa factory; when factory is abstract.
abstractWithInstances
Section titled “abstractWithInstances”
readonlyabstractWithInstances:"typedblite.abstract-with-instances"='typedblite.abstract-with-instances'
person @abstract; when persons exist.
alreadyDefined
Section titled “alreadyDefined”
readonlyalreadyDefined:"typedblite.already-defined"='typedblite.already-defined'
A redefine that restates what is applied — “already defined”.
annotationArguments
Section titled “annotationArguments”
readonlyannotationArguments:"typedblite.annotation-arguments"=TypeQLiteValidationCode.annotationArguments
annotationNotAdmitted
Section titled “annotationNotAdmitted”
readonlyannotationNotAdmitted:"typedblite.annotation-not-admitted"=TypeQLiteValidationCode.annotationNotAdmitted
annotationNotEnforced
Section titled “annotationNotEnforced”
readonlyannotationNotEnforced:"typedblite.annotation-not-enforced"=TypeQLiteValidationCode.annotationNotEnforced
constraintViolated
Section titled “constraintViolated”
readonlyconstraintViolated:"typedblite.constraint-violated"='typedblite.constraint-violated'
cyclicHierarchy
Section titled “cyclicHierarchy”
readonlycyclicHierarchy:"typedblite.cyclic-hierarchy"='typedblite.cyclic-hierarchy'
danglingRelation
Section titled “danglingRelation”
readonlydanglingRelation:"typedblite.dangling-relation"='typedblite.dangling-relation'
dataDoesNotConform
Section titled “dataDoesNotConform”
readonlydataDoesNotConform:"typedblite.data-does-not-conform"='typedblite.data-does-not-conform'
person owns barcode @key; when two products share a barcode — the data does not conform.
duplicateLabel
Section titled “duplicateLabel”
readonlyduplicateLabel:"typedblite.duplicate-label"=TypeQLiteValidationCode.duplicateLabel
redefine entity x label y when y is taken — the validator’s own duplicate-label code, forwarded.
emptyMatch
Section titled “emptyMatch”
readonlyemptyMatch:"typedblite.empty-match"='typedblite.empty-match'
readonlyfetch:"typedblite.fetch"='typedblite.fetch'
A fetch the engine refuses before any row: a variable not available to it, a key mapped twice,
an entity or relation fetched as a value, an attribute no owner can have, a scalar projection
of an attribute that can be owned more than once, a sub-query with no fetch.
functionArity
Section titled “functionArity”
readonlyfunctionArity:"typedblite.function-arity"='typedblite.function-arity'
A built-in called with the wrong number of arguments.
readonlygiven:"typedblite.given"='typedblite.given'
Given rows that do not fit the given stage — missing, undeclared, None, or of the wrong type.
hasInstances
Section titled “hasInstances”
readonlyhasInstances:"typedblite.has-instances"='typedblite.has-instances'
undefine person while persons exist — “must be deleted”.
hasSubtypes
Section titled “hasSubtypes”
readonlyhasSubtypes:"typedblite.has-subtypes"='typedblite.has-subtypes'
undefine person while child sub person exists.
inheritedCapability
Section titled “inheritedCapability”
readonlyinheritedCapability:"typedblite.inherited-capability"='typedblite.inherited-capability'
undefine owns name from child when person owns name — inherited, “not allowed”.
journalMode
Section titled “journalMode”
readonlyjournalMode:"typedblite.journal-mode"='typedblite.journal-mode'
keysRegistered
Section titled “keysRegistered”
readonlykeysRegistered:"typedblite.keys-registered"='typedblite.keys-registered'
kindChanged
Section titled “kindChanged”
readonlykindChanged:"typedblite.kind-changed"='typedblite.kind-changed'
entity name; over an attribute name — a label keeps its kind.
mixedPattern
Section titled “mixedPattern”
readonlymixedPattern:"typedblite.mixed-pattern"='typedblite.mixed-pattern'
$x sub person, has name $n — a variable used as a type and as a thing in one pattern.
noCandidates
Section titled “noCandidates”
readonlynoCandidates:"typedblite.no-candidates"='typedblite.no-candidates'
notDefined
Section titled “notDefined”
readonlynotDefined:"typedblite.not-defined"='typedblite.not-defined'
redefine person sub x on a parentless type; undefine @card from … where none is — “Try define instead” / “no defined”.
nothingRedefined
Section titled “nothingRedefined”
readonlynothingRedefined:"typedblite.nothing-redefined"='typedblite.nothing-redefined'
A redefine whose one statement changes nothing this engine records — “Nothing was redefined”.
notImplemented
Section titled “notImplemented”
readonlynotImplemented:"typedblite.not-implemented"='typedblite.not-implemented'
A statement the grammar has and the engine does not — ADR-002 D7’s third layer, named.
ownsNotAttribute
Section titled “ownsNotAttribute”
readonlyownsNotAttribute:"typedblite.owns-not-attribute"='typedblite.owns-not-attribute'
house owns person; — only an attribute type is owned.
parseFailed
Section titled “parseFailed”
readonlyparseFailed:"typedblite.parse-failed"='typedblite.parse-failed'
projected
Section titled “projected”
readonlyprojected:"typedblite.projected"='typedblite.projected'
reducer
Section titled “reducer”
readonlyreducer:"typedblite.reducer"='typedblite.reducer'
A reducer the engine does not know, or one applied to the wrong kind of variable.
relatesOnNonRelation
Section titled “relatesOnNonRelation”
readonlyrelatesOnNonRelation:"typedblite.relates-on-non-relation"='typedblite.relates-on-non-relation'
person relates employee; on an entity.
reservedKeyword
Section titled “reservedKeyword”
readonlyreservedKeyword:"typedblite.reserved-keyword"=TypeQLiteValidationCode.reservedKeyword
A reserved word where a label belongs — TypeDB’s [DEX31]; the validator’s code, forwarded.
revisionNotDerived
Section titled “revisionNotDerived”
readonlyrevisionNotDerived:"typedblite.revision-not-derived"='typedblite.revision-not-derived'
A revision from a peer that is not derived from its content, or a live one with no state: refused by
ChangeLog.applyRemote (ADR-003, amendment of 2026-11-15).
roleRedeclared
Section titled “roleRedeclared”
readonlyroleRedeclared:"typedblite.role-redeclared"='typedblite.role-redeclared'
fathership relates parent; when parentship relates parent is above it.
schemaApplied
Section titled “schemaApplied”
readonlyschemaApplied:"typedblite.schema-applied"='typedblite.schema-applied'
schemaChanged
Section titled “schemaChanged”
readonlyschemaChanged:"typedblite.schema-changed"='typedblite.schema-changed'
undefine/redefine applied — what changed, as a fact.
supertypeChanged
Section titled “supertypeChanged”
readonlysupertypeChanged:"typedblite.supertype-changed"='typedblite.supertype-changed'
entity pigeon sub animal; when pigeon sub bird is applied — a parent changes by redefine only.
supertypeKind
Section titled “supertypeKind”
readonlysupertypeKind:"typedblite.supertype-kind"='typedblite.supertype-kind'
entity contractor sub employment — a parent is of its child’s kind.
tombstones
Section titled “tombstones”
readonlytombstones:"typedblite.tombstones"='typedblite.tombstones'
traitOnAttribute
Section titled “traitOnAttribute”
readonlytraitOnAttribute:"typedblite.trait-on-attribute"='typedblite.trait-on-attribute'
email owns name; — an attribute re-open carrying a trait. The attribute is known; the trait is the fault.
truncated
Section titled “truncated”
readonlytruncated:"typedblite.diagnostics-truncated"='typedblite.diagnostics-truncated'
unboundValue
Section titled “unboundValue”
readonlyunboundValue:"typedblite.unbound-value"='typedblite.unbound-value'
A value expression reads a variable nothing binds.
unknownAttribute
Section titled “unknownAttribute”
readonlyunknownAttribute:"typedblite.unknown-attribute"='typedblite.unknown-attribute'
unknownFunction
Section titled “unknownFunction”
readonlyunknownFunction:"typedblite.unknown-function"='typedblite.unknown-function'
A function the engine does not know.
unknownRole
Section titled “unknownRole”
readonlyunknownRole:"typedblite.unknown-role"='typedblite.unknown-role'
plays employment:ceo — no such role declared by that relation (an inherited one counts as its declarer’s).
unknownType
Section titled “unknownType”
readonlyunknownType:"typedblite.unknown-type"='typedblite.unknown-type'
unownedAttribute
Section titled “unownedAttribute”
readonlyunownedAttribute:"typedblite.unowned-attribute"='typedblite.unowned-attribute'
unprojectableVariable
Section titled “unprojectableVariable”
readonlyunprojectableVariable:"typedblite.unprojectable-variable"=TypeQLiteValidationCode.unprojectableVariable
unsupportedIncrementalRole
Section titled “unsupportedIncrementalRole”
readonlyunsupportedIncrementalRole:"typedblite.unsupported-incremental-role"='typedblite.unsupported-incremental-role'
insert $l links (source: $b); against an already-matched relation — see runInsert.
valueAssignedTwice
Section titled “valueAssignedTwice”
readonlyvalueAssignedTwice:"typedblite.value-assigned-twice"='typedblite.value-assigned-twice'
A let variable assigned twice in one branch.
valueCycle
Section titled “valueCycle”
readonlyvalueCycle:"typedblite.value-cycle"='typedblite.value-cycle'
lets that wait on each other and can never be evaluated.
valueOutOfRange
Section titled “valueOutOfRange”
readonlyvalueOutOfRange:"typedblite.value-out-of-range"='typedblite.value-out-of-range'
An arithmetic result outside its type — a 64-bit integer overflow, a division by zero.
valueTypeConflict
Section titled “valueTypeConflict”
readonlyvalueTypeConflict:"typedblite.value-type-conflict"='typedblite.value-type-conflict'
code-name sub name, value integer under a string name — a subtype’s value type is its parent’s.
valueTypeOnThing
Section titled “valueTypeOnThing”
readonlyvalueTypeOnThing:"typedblite.value-type-on-thing"=TypeQLiteValidationCode.valueTypeOnThing
writeInRead
Section titled “writeInRead”
readonlywriteInRead:"typedblite.write-in-read"='typedblite.write-in-read'
A write stage handed to query(), which reads — execute() runs writes.
readonlywrote:"typedblite.wrote"='typedblite.wrote'
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.