TruncationReason
Why a replay stopped early, in a Truncated verdict.
An enum rather than a message string, and that is the whole point of it: "do not parse this" is a comment on a String and a structure on an enum. A consumer that wants to branch on the cause — log it, retry the segment, resume from Truncated.atOffset — can, without an assertEquals against prose that a later reword silently breaks.
The split that matters is the REMEDY, not the layer. SegmentHeader and Frame both mean "the bytes at Truncated.atOffset are not readable yet" — a writer part-way through an append, a file a locked device will not open — so resuming from that offset later can work. MissingRegion means the bytes are gone, and no later resume will ever produce them. Reporting the third as either of the first two is the kind of lie a consumer acts on.
Entries
A segment's header is unwritten, torn, fails its checksum — or the segment could not be read at all.
A whole region of the archive's offset space is missing: the next segment's header is intact and reads perfectly, it simply does not begin where the previous segment's frames ended.
Properties
Functions
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Returns an array containing the constants of this enum type, in the order they're declared.