Skip to main content

shadow_nft_standard/
error.rs

1use anchor_lang::error_code;
2
3#[error_code]
4pub enum ErrorCode {
5    #[msg("Mint account has a freeze authority")]
6    FreezeAuthorityPresent,
7
8    #[msg("Metadata account must have mint authority")]
9    InvalidMintAuthority,
10
11    #[msg("Mint account either has a nonunitary supply or nonzero decimals")]
12    DivisibleToken,
13
14    #[msg("Primary sale already occured")]
15    PrimarySale,
16
17    #[msg("Insufficient SOL for mint")]
18    InsufficientSolForMint,
19
20    #[msg("Unauthorized")]
21    Unauthorized,
22
23    #[msg("This metadata accounts is immutable")]
24    ImmutableAccount,
25
26    #[msg("The instruction received invalid input")]
27    InvalidArguments,
28
29    #[msg("Attempted to create a group which exceeds the maximum number of members")]
30    ExceedsMaxGroupSize,
31
32    #[msg("A creator must be a system account")]
33    CreatorMustBeSystemAccount,
34
35    #[msg("A creator was not present for a multisig operation")]
36    CreatorNotPresentForMultisig,
37
38    #[msg("A creator did not sign for a multisig operation")]
39    CreatorNotSignerForMultisig,
40
41    #[msg("A creator was included twice in a group")]
42    DuplicateCreator,
43
44    #[msg("The symbol provided is too large")]
45    SymbolToolarge,
46
47    #[msg("Incorrect creator group size")]
48    IncorrectCreatorGroupSize,
49
50    #[msg("An integer overflowed")]
51    IntegerOverflow,
52
53    #[msg("Not all creators have signed to create this group")]
54    UnintializedGroup,
55
56    #[msg("Not all creators have signed to create this collection")]
57    UnintializedCollection,
58
59    #[msg("The royalties you provided add up to >100%")]
60    InvalidRoyalties,
61}