Skip to main content
Version: v1

FailureKind Enum

The kinds of failures that a transaction might encounter.

Signature

export enum FailureKind

Flags

Flag Description
BadPlace Transaction tries to insert in an invalid Place
BadRange Transaction tries to detach an invalid Range
ConstraintViolation Transaction has an invalid constraint
DetachedSequenceIdAlreadyInUse Transaction has a build operation using an already in use DetachedSequenceID.
DetachedSequenceNotFound Transaction tries to operate on an unknown DetachedSequenceID
DuplicateIdInBuild Transaction has a build which uses a duplicated NodeId
IdAlreadyInUse Transaction tries to build a node using an ID which is already used in the current state
UnknownId Transaction tries to set value of an unknown node
UnusedDetachedSequence Transaction has an unused DetachedSequenceId

BadPlace

Transaction tries to insert in an invalid Place

Signature

BadPlace = "BadPlace"

BadRange

Transaction tries to detach an invalid Range

Signature

BadRange = "BadRange"

ConstraintViolation

Transaction has an invalid constraint

Signature

ConstraintViolation = "ConstraintViolation"

DetachedSequenceIdAlreadyInUse

Transaction has a build operation using an already in use DetachedSequenceID.

Signature

DetachedSequenceIdAlreadyInUse = "DetachedSequenceIdAlreadyInUse"

DetachedSequenceNotFound

Transaction tries to operate on an unknown DetachedSequenceID

Signature

DetachedSequenceNotFound = "DetachedSequenceNotFound"

DuplicateIdInBuild

Transaction has a build which uses a duplicated NodeId

Signature

DuplicateIdInBuild = "DuplicateIdInBuild"

IdAlreadyInUse

Transaction tries to build a node using an ID which is already used in the current state

Signature

IdAlreadyInUse = "IdAlreadyInUse"

UnknownId

Transaction tries to set value of an unknown node

Signature

UnknownId = "UnknownId"

UnusedDetachedSequence

Transaction has an unused DetachedSequenceId

Signature

UnusedDetachedSequence = "UnusedDetachedSequence"