mpl_hybrid/generated/errors/
mpl_hybrid.rs

1//! This code was AUTOGENERATED using the kinobi library.
2//! Please DO NOT EDIT THIS FILE, instead use visitors
3//! to add features, then rerun kinobi to update it.
4//!
5//! [https://github.com/metaplex-foundation/kinobi]
6//!
7
8use num_derive::FromPrimitive;
9use thiserror::Error;
10
11#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
12pub enum MplHybridError {
13    /// 6000 (0x1770) - Invalid Collection
14    #[error("Invalid Collection")]
15    InvalidCollection,
16    /// 6001 (0x1771) - Collection Authority does not match signer
17    #[error("Collection Authority does not match signer")]
18    InvalidCollectionAuthority,
19    /// 6002 (0x1772) - Error in the randomness
20    #[error("Error in the randomness")]
21    RandomnessError,
22    /// 6003 (0x1773) - Invalid Fee Constant Wallet
23    #[error("Invalid Fee Constant Wallet")]
24    InvalidConstantFeeWallet,
25    /// 6004 (0x1774) - Invalid Project Fee Wallet
26    #[error("Invalid Project Fee Wallet")]
27    InvalidProjectFeeWallet,
28    /// 6005 (0x1775) - Invalid SlotHash Program Account
29    #[error("Invalid SlotHash Program Account")]
30    InvalidSlotHash,
31    /// 6006 (0x1776) - Invalid MPL CORE Program Account
32    #[error("Invalid MPL CORE Program Account")]
33    InvalidMplCore,
34    /// 6007 (0x1777) - Invalid Collection Account
35    #[error("Invalid Collection Account")]
36    InvalidCollectionAccount,
37    /// 6008 (0x1778) - Invalid Asset Account
38    #[error("Invalid Asset Account")]
39    InvalidAssetAccount,
40    /// 6009 (0x1779) - Max must be greater than Min
41    #[error("Max must be greater than Min")]
42    MaxMustBeGreaterThanMin,
43    /// 6010 (0x177A) - Invalid Mint Account
44    #[error("Invalid Mint Account")]
45    InvalidMintAccount,
46}
47
48impl solana_program::program_error::PrintProgramError for MplHybridError {
49    fn print<E>(&self) {
50        solana_program::msg!(&self.to_string());
51    }
52}