Skip to main content

Module error

Module error 

Source
Expand description

Error types for bitframe parsing operations.

All errors are structured, deterministic, and machine-readable. Display provides human-friendly context; fields are accessible for programmatic use.

§Examples

use bitframe::Error;

let err = Error::TooShort { needed_bytes: 6, have_bytes: 2 };
assert_eq!(format!("{err}"), "buffer too short: need 6 bytes, have 2");

Enums§

Error
Errors returned by bitframe parsing operations.