1 2 3 4 5 6 7 8 9
use anchor_lang::prelude::error_code; #[error_code] pub enum ErrorCode { #[msg("Metadata provided for mint is invalid")] InvalidMetadata, #[msg("Provided metadata didn't match any criteria config for the character model")] NoCriteriaMatched, }