File size: 615 Bytes
a8d46c6
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum ValidationError {
    /// The event carries a version tag not supported by this runtime version.
    UnsupportedVersion { expected: u32, found: u32 },
    /// The stream sequence counter broke monotonicity or skipped updates.
    SequenceBreakage { expected: u64, found: u64 },
    /// The payload contains zero mutations or structural contradictions (e.g. self-canceling logs).
    InvalidPayloadState(&'static str),
    /// Emitted boundaries violate protocol rules (e.g. operations before a transaction starts).
    InvalidBoundaryCondition(&'static str),
}