1pub type HexaFreezeResult<T> = Result<T, HexaFreezeError>;
2
3#[derive(Debug, PartialEq, Eq, thiserror::Error)]
4pub enum HexaFreezeError {
5 #[error("Epoch is too far in the future!")]
6 EpochInTheFuture,
7 #[error("Epoch is too far in the past!")]
8 EpochTooFarInThePast,
9 #[error("The node_id is too large / greater than 1023!")]
10 NodeIdTooLarge,
11 #[error("Your clock jumped backwards in time!")]
12 ClockWentBackInTime,
13 #[error("You've generated more than 9,223,372,036,854,775,807 ids!")]
14 Surpassed64BitLimit,
15}