//! Errors for Access Control module.
use odra::OdraError;
/// Access Control-related errors.
#[derive(OdraError)]
pub enum Error {
/// The owner is not set.
OwnerNotSet = 20_000,
/// The caller is not the owner.
CallerNotTheOwner = 20_001,
/// The caller is not the new owner.
CallerNotTheNewOwner = 20_002,
/// The role is missing.
MissingRole = 20_003,
/// The role cannot be renounced for another address.
RoleRenounceForAnotherAddress = 20_004
}