spl_token_group_interface/
error.rs

1//! Interface error types
2
3use spl_program_error::*;
4
5/// Errors that may be returned by the interface.
6#[spl_program_error]
7pub enum TokenGroupError {
8    /// Size is greater than proposed max size
9    #[error("Size is greater than proposed max size")]
10    SizeExceedsNewMaxSize,
11    /// Size is greater than max size
12    #[error("Size is greater than max size")]
13    SizeExceedsMaxSize,
14    /// Group is immutable
15    #[error("Group is immutable")]
16    ImmutableGroup,
17    /// Incorrect mint authority has signed the instruction
18    #[error("Incorrect mint authority has signed the instruction")]
19    IncorrectMintAuthority,
20    /// Incorrect update authority has signed the instruction
21    #[error("Incorrect update authority has signed the instruction")]
22    IncorrectUpdateAuthority,
23    /// Member account should not be the same as the group account
24    #[error("Member account should not be the same as the group account")]
25    MemberAccountIsGroupAccount,
26}