bcx_core/error.rs
1/// Validation failures shared by BCX crates.
2#[derive(Clone, Copy, Debug, Eq, PartialEq)]
3pub enum ValidationError {
4 /// A value was empty where the protocol requires at least one byte or item.
5 Empty,
6 /// A value exceeded its active protocol or profile bound.
7 TooLarge,
8 /// A zero value was supplied for a field that must be non-zero.
9 ZeroValue,
10 /// A field was malformed for its declared type.
11 Malformed,
12 /// A field was valid in shape but not permitted by the active profile.
13 NotPermitted,
14}