decaf377_fmd/
error.rs

1use thiserror::Error;
2
3/// An error in message detection.
4#[derive(Clone, Error, Debug)]
5pub enum Error {
6    /// Clue creation for larger than maximum precision was requested.
7    #[error("Precision {0} is larger than `MAX_PRECISION` or current key expansion.")]
8    PrecisionTooLarge(u64),
9    /// An address encoding was invalid.
10    #[error("Invalid address.")]
11    InvalidAddress,
12    /// A detection key encoding was invalid.
13    #[error("Invalid detection key.")]
14    InvalidDetectionKey,
15    /// A clue key encoding was invalid.
16    #[error("Invalid clue key.")]
17    InvalidClueKey,
18}