1use anchor_lang::error_code;
2
3#[error_code]
4pub enum Errors {
5 #[msg("Only current Authority or Recovery accounts can update the App authority")]
6 UnauthorizedAuthorityUpdate,
7 #[msg("Role, Resource or Permission must be betwen 1 and 16 alphanumeric characters long")]
8 InvalidRule,
9 #[msg("Role must be between 1 and 16 alphanumeric characters long")]
10 InvalidRole,
11 #[msg("The provided string is too short")]
12 StringTooShort,
13 #[msg("The provided string is too long")]
14 StringTooLong,
15 #[msg("The user does not have enough privileges to perform this action")]
16 Unauthorized,
17 #[msg("The Sol Cerberus APP ID does not match the one defined in the program")]
18 InvalidAppID,
19 #[msg("Invalid address type, mus be either 'Wallet', 'Nft', 'Collection' or a wildcard '*'")]
20 InvalidAddressType,
21 #[msg("Invalid namespace, must be either an u8 number (0-255) or a wildcard '*'")]
22 InvalidNamespace,
23 #[msg("SOL_CERBERUS_APP_ID is missing on lib.rs")]
24 MissingSolCerberusAppId,
25 #[msg("The Sol Cerberus Seed account is missing")]
26 MissingSeedAccount,
27 #[msg("Only program authority can perform this action")]
28 UnauthorizedProgramAuthority,
29 #[msg("Insufficient funds for transaction")]
30 InsufficientFunds,
31}