Skip to content

TransactionFailure

In std/io.

type TransactionFailure : DataContract { kind : String reason : String attempts : Int endpoint? : String detail? : Data }

Why a transaction scope did not commit, the err of its Result: kind is "rolled_back" for tx.rollback, "conflict" for a concurrent transaction after the last attempt, "constraint" for a row the system refused, and "exhausted" for tx.retry with no attempt left; reason is the rollback argument or what the system said; attempts counts the attempts run. endpoint and detail are declared for the participant and the system's state code, and are absent today: no backend reports them yet, and what the system said is in reason.