odra_modules/access/
errors.rs

1//! Errors for Access Control module.
2use odra::prelude::OdraError;
3
4/// Access Control-related errors.
5#[odra::odra_error]
6pub enum Error {
7    /// The owner is not set.
8    OwnerNotSet = 20_000,
9    /// The caller is not the owner.
10    CallerNotTheOwner = 20_001,
11    /// The caller is not the new owner.
12    CallerNotTheNewOwner = 20_002,
13    /// The role is missing.
14    MissingRole = 20_003,
15    /// The role cannot be renounced for another address.
16    RoleRenounceForAnotherAddress = 20_004
17}