mpl_engraver/generated/errors/
mpl_engraver.rs1use num_derive::FromPrimitive;
9use thiserror::Error;
10
11#[derive(Clone, Debug, Eq, Error, FromPrimitive, PartialEq)]
12pub enum MplEngraverError {
13 #[error("Invalid Instruction")]
15 InvalidInstruction,
16 #[error("Invalid Account owner")]
18 InvalidAccountOwner,
19 #[error("The mint does not match the metadata account")]
21 MintMetadataMismatch,
22 #[error("The mint does not match the token account")]
24 MintTokenMismatch,
25 #[error("The edition supply is not zero")]
27 EditionSupplyMismatch,
28 #[error("The derived PDA is not valid")]
30 DerivedKeyInvalid,
31}
32
33impl solana_program::program_error::PrintProgramError for MplEngraverError {
34 fn print<E>(&self) {
35 solana_program::msg!(&self.to_string());
36 }
37}