Broken

data class Broken(val firstBadSeq: Long, val expected: String, val actual: String) : VerifyResult

A tamper, corruption, or precondition failure was detected.

verify returns this instead of throwing for any error condition, including:

  • Payload or metadata modification (recomputed hash ≠ stored hash)

  • Invalid range (fromSeq < 0 or toSeq < fromSeq)

  • Hashing.None journal (hashing disabled)

  • No codec attached to the journal (call sagaExecutor first)

  • Malformed prevHash in a stored entry (not 64 lowercase hex chars)

Constructors

Link copied to clipboard
constructor(firstBadSeq: Long, expected: String, actual: String)

Properties

Link copied to clipboard

Description of the actual stored or observed value.

Link copied to clipboard

Description of the expected value (recomputed hash, "valid range", "valid prevHash", etc.).

Link copied to clipboard

Sequence number of the first bad entry, or a sentinel: -1L for range-validation failures, 0L for configuration failures (hashing disabled, no codec).