arbos/address_set/
error.rs

1use arb_storage::StorageError;
2
3/// Errors raised by the address-set storage container.
4#[derive(Clone, thiserror::Error, Debug)]
5pub enum AddressSetError {
6    /// Underlying storage failure.
7    #[error(transparent)]
8    Storage(#[from] StorageError),
9
10    /// `rectify_mapping` was called for an address that is not in the set.
11    #[error("address is not a member of the set")]
12    NotMember,
13
14    /// `rectify_mapping` found the slot-to-index mapping already consistent;
15    /// no repair is needed.
16    #[error("address-set mapping is already consistent")]
17    MappingAlreadyConsistent,
18}