Skip to main content

mpl_token_metadata/generated/errors/
mpl_token_metadata.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 MplTokenMetadataError {
13    /// 0 (0x0) -
14    #[error("")]
15    InstructionUnpackError,
16    /// 1 (0x1) -
17    #[error("")]
18    InstructionPackError,
19    /// 2 (0x2) - Lamport balance below rent-exempt threshold
20    #[error("Lamport balance below rent-exempt threshold")]
21    NotRentExempt,
22    /// 3 (0x3) - Already initialized
23    #[error("Already initialized")]
24    AlreadyInitialized,
25    /// 4 (0x4) - Uninitialized
26    #[error("Uninitialized")]
27    Uninitialized,
28    /// 5 (0x5) -  Metadata's key must match seed of ['metadata', program id, mint] provided
29    #[error(" Metadata's key must match seed of ['metadata', program id, mint] provided")]
30    InvalidMetadataKey,
31    /// 6 (0x6) - Edition's key must match seed of ['metadata', program id, name, 'edition'] provided
32    #[error("Edition's key must match seed of ['metadata', program id, name, 'edition'] provided")]
33    InvalidEditionKey,
34    /// 7 (0x7) - Update Authority given does not match
35    #[error("Update Authority given does not match")]
36    UpdateAuthorityIncorrect,
37    /// 8 (0x8) - Update Authority needs to be signer to update metadata
38    #[error("Update Authority needs to be signer to update metadata")]
39    UpdateAuthorityIsNotSigner,
40    /// 9 (0x9) - You must be the mint authority and signer on this transaction
41    #[error("You must be the mint authority and signer on this transaction")]
42    NotMintAuthority,
43    /// 10 (0xA) - Mint authority provided does not match the authority on the mint
44    #[error("Mint authority provided does not match the authority on the mint")]
45    InvalidMintAuthority,
46    /// 11 (0xB) - Name too long
47    #[error("Name too long")]
48    NameTooLong,
49    /// 12 (0xC) - Symbol too long
50    #[error("Symbol too long")]
51    SymbolTooLong,
52    /// 13 (0xD) - URI too long
53    #[error("URI too long")]
54    UriTooLong,
55    /// 14 (0xE) -
56    #[error("")]
57    UpdateAuthorityMustBeEqualToMetadataAuthorityAndSigner,
58    /// 15 (0xF) - Mint given does not match mint on Metadata
59    #[error("Mint given does not match mint on Metadata")]
60    MintMismatch,
61    /// 16 (0x10) - Editions must have exactly one token
62    #[error("Editions must have exactly one token")]
63    EditionsMustHaveExactlyOneToken,
64    /// 17 (0x11) -
65    #[error("")]
66    MaxEditionsMintedAlready,
67    /// 18 (0x12) -
68    #[error("")]
69    TokenMintToFailed,
70    /// 19 (0x13) -
71    #[error("")]
72    MasterRecordMismatch,
73    /// 20 (0x14) -
74    #[error("")]
75    DestinationMintMismatch,
76    /// 21 (0x15) -
77    #[error("")]
78    EditionAlreadyMinted,
79    /// 22 (0x16) -
80    #[error("")]
81    PrintingMintDecimalsShouldBeZero,
82    /// 23 (0x17) -
83    #[error("")]
84    OneTimePrintingAuthorizationMintDecimalsShouldBeZero,
85    /// 24 (0x18) - EditionMintDecimalsShouldBeZero
86    #[error("EditionMintDecimalsShouldBeZero")]
87    EditionMintDecimalsShouldBeZero,
88    /// 25 (0x19) -
89    #[error("")]
90    TokenBurnFailed,
91    /// 26 (0x1A) -
92    #[error("")]
93    TokenAccountOneTimeAuthMintMismatch,
94    /// 27 (0x1B) - Derived key invalid
95    #[error("Derived key invalid")]
96    DerivedKeyInvalid,
97    /// 28 (0x1C) - The Printing mint does not match that on the master edition!
98    #[error("The Printing mint does not match that on the master edition!")]
99    PrintingMintMismatch,
100    /// 29 (0x1D) - The One Time Printing Auth mint does not match that on the master edition!
101    #[error("The One Time Printing Auth mint does not match that on the master edition!")]
102    OneTimePrintingAuthMintMismatch,
103    /// 30 (0x1E) - The mint of the token account does not match the Printing mint!
104    #[error("The mint of the token account does not match the Printing mint!")]
105    TokenAccountMintMismatch,
106    /// 31 (0x1F) - The mint of the token account does not match the master metadata mint!
107    #[error("The mint of the token account does not match the master metadata mint!")]
108    TokenAccountMintMismatchV2,
109    /// 32 (0x20) - Not enough tokens to mint a limited edition
110    #[error("Not enough tokens to mint a limited edition")]
111    NotEnoughTokens,
112    /// 33 (0x21) -
113    #[error("")]
114    PrintingMintAuthorizationAccountMismatch,
115    /// 34 (0x22) -
116    #[error("")]
117    AuthorizationTokenAccountOwnerMismatch,
118    /// 35 (0x23) -
119    #[error("")]
120    Disabled,
121    /// 36 (0x24) - Creators list too long
122    #[error("Creators list too long")]
123    CreatorsTooLong,
124    /// 37 (0x25) - Creators must be at least one if set
125    #[error("Creators must be at least one if set")]
126    CreatorsMustBeAtleastOne,
127    /// 38 (0x26) -
128    #[error("")]
129    MustBeOneOfCreators,
130    /// 39 (0x27) - This metadata does not have creators
131    #[error("This metadata does not have creators")]
132    NoCreatorsPresentOnMetadata,
133    /// 40 (0x28) - This creator address was not found
134    #[error("This creator address was not found")]
135    CreatorNotFound,
136    /// 41 (0x29) - Basis points cannot be more than 10000
137    #[error("Basis points cannot be more than 10000")]
138    InvalidBasisPoints,
139    /// 42 (0x2A) - Primary sale can only be flipped to true and is immutable
140    #[error("Primary sale can only be flipped to true and is immutable")]
141    PrimarySaleCanOnlyBeFlippedToTrue,
142    /// 43 (0x2B) - Owner does not match that on the account given
143    #[error("Owner does not match that on the account given")]
144    OwnerMismatch,
145    /// 44 (0x2C) - This account has no tokens to be used for authorization
146    #[error("This account has no tokens to be used for authorization")]
147    NoBalanceInAccountForAuthorization,
148    /// 45 (0x2D) - Share total must equal 100 for creator array
149    #[error("Share total must equal 100 for creator array")]
150    ShareTotalMustBe100,
151    /// 46 (0x2E) -
152    #[error("")]
153    ReservationExists,
154    /// 47 (0x2F) -
155    #[error("")]
156    ReservationDoesNotExist,
157    /// 48 (0x30) -
158    #[error("")]
159    ReservationNotSet,
160    /// 49 (0x31) -
161    #[error("")]
162    ReservationAlreadyMade,
163    /// 50 (0x32) -
164    #[error("")]
165    BeyondMaxAddressSize,
166    /// 51 (0x33) - NumericalOverflowError
167    #[error("NumericalOverflowError")]
168    NumericalOverflowError,
169    /// 52 (0x34) -
170    #[error("")]
171    ReservationBreachesMaximumSupply,
172    /// 53 (0x35) -
173    #[error("")]
174    AddressNotInReservation,
175    /// 54 (0x36) - You cannot unilaterally verify another creator, they must sign
176    #[error("You cannot unilaterally verify another creator, they must sign")]
177    CannotVerifyAnotherCreator,
178    /// 55 (0x37) - You cannot unilaterally unverify another creator
179    #[error("You cannot unilaterally unverify another creator")]
180    CannotUnverifyAnotherCreator,
181    /// 56 (0x38) -
182    #[error("")]
183    SpotMismatch,
184    /// 57 (0x39) - Incorrect account owner
185    #[error("Incorrect account owner")]
186    IncorrectOwner,
187    /// 58 (0x3A) -
188    #[error("")]
189    PrintingWouldBreachMaximumSupply,
190    /// 59 (0x3B) - Data is immutable
191    #[error("Data is immutable")]
192    DataIsImmutable,
193    /// 60 (0x3C) - No duplicate creator addresses
194    #[error("No duplicate creator addresses")]
195    DuplicateCreatorAddress,
196    /// 61 (0x3D) -
197    #[error("")]
198    ReservationSpotsRemainingShouldMatchTotalSpotsAtStart,
199    /// 62 (0x3E) - Invalid token program
200    #[error("Invalid token program")]
201    InvalidTokenProgram,
202    /// 63 (0x3F) - Data type mismatch
203    #[error("Data type mismatch")]
204    DataTypeMismatch,
205    /// 64 (0x40) -
206    #[error("")]
207    BeyondAlottedAddressSize,
208    /// 65 (0x41) -
209    #[error("")]
210    ReservationNotComplete,
211    /// 66 (0x42) -
212    #[error("")]
213    TriedToReplaceAnExistingReservation,
214    /// 67 (0x43) - Invalid operation
215    #[error("Invalid operation")]
216    InvalidOperation,
217    /// 68 (0x44) - Invalid Owner
218    #[error("Invalid Owner")]
219    InvalidOwner,
220    /// 69 (0x45) - Printing mint supply must be zero for conversion
221    #[error("Printing mint supply must be zero for conversion")]
222    PrintingMintSupplyMustBeZeroForConversion,
223    /// 70 (0x46) - One Time Auth mint supply must be zero for conversion
224    #[error("One Time Auth mint supply must be zero for conversion")]
225    OneTimeAuthMintSupplyMustBeZeroForConversion,
226    /// 71 (0x47) - You tried to insert one edition too many into an edition mark pda
227    #[error("You tried to insert one edition too many into an edition mark pda")]
228    InvalidEditionIndex,
229    /// 72 (0x48) -
230    #[error("")]
231    ReservationArrayShouldBeSizeOne,
232    /// 73 (0x49) - Is Mutable can only be flipped to false
233    #[error("Is Mutable can only be flipped to false")]
234    IsMutableCanOnlyBeFlippedToFalse,
235    /// 74 (0x4A) - Collection cannot be verified in this instruction
236    #[error("Collection cannot be verified in this instruction")]
237    CollectionCannotBeVerifiedInThisInstruction,
238    /// 75 (0x4B) - This instruction was deprecated in a previous release and is now removed
239    #[error("This instruction was deprecated in a previous release and is now removed")]
240    Removed,
241    /// 76 (0x4C) -
242    #[error("")]
243    MustBeBurned,
244    /// 77 (0x4D) - This use method is invalid
245    #[error("This use method is invalid")]
246    InvalidUseMethod,
247    /// 78 (0x4E) - Cannot Change Use Method after the first use
248    #[error("Cannot Change Use Method after the first use")]
249    CannotChangeUseMethodAfterFirstUse,
250    /// 79 (0x4F) - Cannot Change Remaining or Available uses after the first use
251    #[error("Cannot Change Remaining or Available uses after the first use")]
252    CannotChangeUsesAfterFirstUse,
253    /// 80 (0x50) - Collection Not Found on Metadata
254    #[error("Collection Not Found on Metadata")]
255    CollectionNotFound,
256    /// 81 (0x51) - Collection Update Authority is invalid
257    #[error("Collection Update Authority is invalid")]
258    InvalidCollectionUpdateAuthority,
259    /// 82 (0x52) - Collection Must Be a Unique Master Edition v2
260    #[error("Collection Must Be a Unique Master Edition v2")]
261    CollectionMustBeAUniqueMasterEdition,
262    /// 83 (0x53) - The Use Authority Record Already Exists, to modify it Revoke, then Approve
263    #[error("The Use Authority Record Already Exists, to modify it Revoke, then Approve")]
264    UseAuthorityRecordAlreadyExists,
265    /// 84 (0x54) - The Use Authority Record is empty or already revoked
266    #[error("The Use Authority Record is empty or already revoked")]
267    UseAuthorityRecordAlreadyRevoked,
268    /// 85 (0x55) - This token has no uses
269    #[error("This token has no uses")]
270    Unusable,
271    /// 86 (0x56) - There are not enough Uses left on this token.
272    #[error("There are not enough Uses left on this token.")]
273    NotEnoughUses,
274    /// 87 (0x57) - This Collection Authority Record Already Exists.
275    #[error("This Collection Authority Record Already Exists.")]
276    CollectionAuthorityRecordAlreadyExists,
277    /// 88 (0x58) - This Collection Authority Record Does Not Exist.
278    #[error("This Collection Authority Record Does Not Exist.")]
279    CollectionAuthorityDoesNotExist,
280    /// 89 (0x59) - This Use Authority Record is invalid.
281    #[error("This Use Authority Record is invalid.")]
282    InvalidUseAuthorityRecord,
283    /// 90 (0x5A) -
284    #[error("")]
285    InvalidCollectionAuthorityRecord,
286    /// 91 (0x5B) - Metadata does not match the freeze authority on the mint
287    #[error("Metadata does not match the freeze authority on the mint")]
288    InvalidFreezeAuthority,
289    /// 92 (0x5C) - All tokens in this account have not been delegated to this user.
290    #[error("All tokens in this account have not been delegated to this user.")]
291    InvalidDelegate,
292    /// 93 (0x5D) -
293    #[error("")]
294    CannotAdjustVerifiedCreator,
295    /// 94 (0x5E) - Verified creators cannot be removed.
296    #[error("Verified creators cannot be removed.")]
297    CannotRemoveVerifiedCreator,
298    /// 95 (0x5F) -
299    #[error("")]
300    CannotWipeVerifiedCreators,
301    /// 96 (0x60) -
302    #[error("")]
303    NotAllowedToChangeSellerFeeBasisPoints,
304    /// 97 (0x61) - Edition override cannot be zero
305    #[error("Edition override cannot be zero")]
306    EditionOverrideCannotBeZero,
307    /// 98 (0x62) - Invalid User
308    #[error("Invalid User")]
309    InvalidUser,
310    /// 99 (0x63) - Revoke Collection Authority signer is incorrect
311    #[error("Revoke Collection Authority signer is incorrect")]
312    RevokeCollectionAuthoritySignerIncorrect,
313    /// 100 (0x64) -
314    #[error("")]
315    TokenCloseFailed,
316    /// 101 (0x65) - Can't use this function on unsized collection
317    #[error("Can't use this function on unsized collection")]
318    UnsizedCollection,
319    /// 102 (0x66) - Can't use this function on a sized collection
320    #[error("Can't use this function on a sized collection")]
321    SizedCollection,
322    /// 103 (0x67) - Missing collection metadata account
323    #[error("Missing collection metadata account")]
324    MissingCollectionMetadata,
325    /// 104 (0x68) - This NFT is not a member of the specified collection.
326    #[error("This NFT is not a member of the specified collection.")]
327    NotAMemberOfCollection,
328    /// 105 (0x69) - This NFT is not a verified member of the specified collection.
329    #[error("This NFT is not a verified member of the specified collection.")]
330    NotVerifiedMemberOfCollection,
331    /// 106 (0x6A) - This NFT is not a collection parent NFT.
332    #[error("This NFT is not a collection parent NFT.")]
333    NotACollectionParent,
334    /// 107 (0x6B) - Could not determine a TokenStandard type.
335    #[error("Could not determine a TokenStandard type.")]
336    CouldNotDetermineTokenStandard,
337    /// 108 (0x6C) - This mint account has an edition but none was provided.
338    #[error("This mint account has an edition but none was provided.")]
339    MissingEditionAccount,
340    /// 109 (0x6D) - This edition is not a Master Edition
341    #[error("This edition is not a Master Edition")]
342    NotAMasterEdition,
343    /// 110 (0x6E) - This Master Edition has existing prints
344    #[error("This Master Edition has existing prints")]
345    MasterEditionHasPrints,
346    /// 111 (0x6F) -
347    #[error("")]
348    BorshDeserializationError,
349    /// 112 (0x70) - Cannot update a verified collection in this command
350    #[error("Cannot update a verified collection in this command")]
351    CannotUpdateVerifiedCollection,
352    /// 113 (0x71) - Edition account doesnt match collection
353    #[error("Edition account doesnt match collection ")]
354    CollectionMasterEditionAccountInvalid,
355    /// 114 (0x72) - Item is already verified.
356    #[error("Item is already verified.")]
357    AlreadyVerified,
358    /// 115 (0x73) -
359    #[error("")]
360    AlreadyUnverified,
361    /// 116 (0x74) - This edition is not a Print Edition
362    #[error("This edition is not a Print Edition")]
363    NotAPrintEdition,
364    /// 117 (0x75) - Invalid Master Edition
365    #[error("Invalid Master Edition")]
366    InvalidMasterEdition,
367    /// 118 (0x76) - Invalid Print Edition
368    #[error("Invalid Print Edition")]
369    InvalidPrintEdition,
370    /// 119 (0x77) - Invalid Edition Marker
371    #[error("Invalid Edition Marker")]
372    InvalidEditionMarker,
373    /// 120 (0x78) - Reservation List is Deprecated
374    #[error("Reservation List is Deprecated")]
375    ReservationListDeprecated,
376    /// 121 (0x79) - Print Edition does not match Master Edition
377    #[error("Print Edition does not match Master Edition")]
378    PrintEditionDoesNotMatchMasterEdition,
379    /// 122 (0x7A) - Edition Number greater than max supply
380    #[error("Edition Number greater than max supply")]
381    EditionNumberGreaterThanMaxSupply,
382    /// 123 (0x7B) - Must unverify before migrating collections.
383    #[error("Must unverify before migrating collections.")]
384    MustUnverify,
385    /// 124 (0x7C) - Invalid Escrow Account Bump Seed
386    #[error("Invalid Escrow Account Bump Seed")]
387    InvalidEscrowBumpSeed,
388    /// 125 (0x7D) - Must Escrow Authority
389    #[error("Must Escrow Authority")]
390    MustBeEscrowAuthority,
391    /// 126 (0x7E) - Invalid System Program
392    #[error("Invalid System Program")]
393    InvalidSystemProgram,
394    /// 127 (0x7F) - Must be a Non Fungible Token
395    #[error("Must be a Non Fungible Token")]
396    MustBeNonFungible,
397    /// 128 (0x80) - Insufficient tokens for transfer
398    #[error("Insufficient tokens for transfer")]
399    InsufficientTokens,
400    /// 129 (0x81) - Borsh Serialization Error
401    #[error("Borsh Serialization Error")]
402    BorshSerializationError,
403    /// 130 (0x82) - Cannot create NFT with no Freeze Authority.
404    #[error("Cannot create NFT with no Freeze Authority.")]
405    NoFreezeAuthoritySet,
406    /// 131 (0x83) - Invalid collection size change
407    #[error("Invalid collection size change")]
408    InvalidCollectionSizeChange,
409    /// 132 (0x84) - Invalid bubblegum signer
410    #[error("Invalid bubblegum signer")]
411    InvalidBubblegumSigner,
412    /// 133 (0x85) - Escrow parent cannot have a delegate
413    #[error("Escrow parent cannot have a delegate")]
414    EscrowParentHasDelegate,
415    /// 134 (0x86) - Mint needs to be signer to initialize the account
416    #[error("Mint needs to be signer to initialize the account")]
417    MintIsNotSigner,
418    /// 135 (0x87) - Invalid token standard
419    #[error("Invalid token standard")]
420    InvalidTokenStandard,
421    /// 136 (0x88) - Invalid mint account for specified token standard
422    #[error("Invalid mint account for specified token standard")]
423    InvalidMintForTokenStandard,
424    /// 137 (0x89) - Invalid authorization rules account
425    #[error("Invalid authorization rules account")]
426    InvalidAuthorizationRules,
427    /// 138 (0x8A) - Missing authorization rules account
428    #[error("Missing authorization rules account")]
429    MissingAuthorizationRules,
430    /// 139 (0x8B) - Missing programmable configuration
431    #[error("Missing programmable configuration")]
432    MissingProgrammableConfig,
433    /// 140 (0x8C) - Invalid programmable configuration
434    #[error("Invalid programmable configuration")]
435    InvalidProgrammableConfig,
436    /// 141 (0x8D) - Delegate already exists
437    #[error("Delegate already exists")]
438    DelegateAlreadyExists,
439    /// 142 (0x8E) - Delegate not found
440    #[error("Delegate not found")]
441    DelegateNotFound,
442    /// 143 (0x8F) - Required account not set in instruction builder
443    #[error("Required account not set in instruction builder")]
444    MissingAccountInBuilder,
445    /// 144 (0x90) - Required argument not set in instruction builder
446    #[error("Required argument not set in instruction builder")]
447    MissingArgumentInBuilder,
448    /// 145 (0x91) - Feature not supported currently
449    #[error("Feature not supported currently")]
450    FeatureNotSupported,
451    /// 146 (0x92) - Invalid system wallet
452    #[error("Invalid system wallet")]
453    InvalidSystemWallet,
454    /// 147 (0x93) - Only the sale delegate can transfer while its set
455    #[error("Only the sale delegate can transfer while its set")]
456    OnlySaleDelegateCanTransfer,
457    /// 148 (0x94) - Missing token account
458    #[error("Missing token account")]
459    MissingTokenAccount,
460    /// 149 (0x95) - Missing SPL token program
461    #[error("Missing SPL token program")]
462    MissingSplTokenProgram,
463    /// 150 (0x96) - Missing authorization rules program
464    #[error("Missing authorization rules program")]
465    MissingAuthorizationRulesProgram,
466    /// 151 (0x97) - Invalid delegate role for transfer
467    #[error("Invalid delegate role for transfer")]
468    InvalidDelegateRoleForTransfer,
469    /// 152 (0x98) - Invalid transfer authority
470    #[error("Invalid transfer authority")]
471    InvalidTransferAuthority,
472    /// 153 (0x99) - Instruction not supported for ProgrammableNonFungible assets
473    #[error("Instruction not supported for ProgrammableNonFungible assets")]
474    InstructionNotSupported,
475    /// 154 (0x9A) - Public key does not match expected value
476    #[error("Public key does not match expected value")]
477    KeyMismatch,
478    /// 155 (0x9B) - Token is locked
479    #[error("Token is locked")]
480    LockedToken,
481    /// 156 (0x9C) - Token is unlocked
482    #[error("Token is unlocked")]
483    UnlockedToken,
484    /// 157 (0x9D) - Missing delegate role
485    #[error("Missing delegate role")]
486    MissingDelegateRole,
487    /// 158 (0x9E) - Invalid authority type
488    #[error("Invalid authority type")]
489    InvalidAuthorityType,
490    /// 159 (0x9F) - Missing token record account
491    #[error("Missing token record account")]
492    MissingTokenRecord,
493    /// 160 (0xA0) - Mint supply must be zero for programmable assets
494    #[error("Mint supply must be zero for programmable assets")]
495    MintSupplyMustBeZero,
496    /// 161 (0xA1) - Data is empty or zeroed
497    #[error("Data is empty or zeroed")]
498    DataIsEmptyOrZeroed,
499    /// 162 (0xA2) - Missing token owner
500    #[error("Missing token owner")]
501    MissingTokenOwnerAccount,
502    /// 163 (0xA3) - Master edition account has an invalid length
503    #[error("Master edition account has an invalid length")]
504    InvalidMasterEditionAccountLength,
505    /// 164 (0xA4) - Incorrect token state
506    #[error("Incorrect token state")]
507    IncorrectTokenState,
508    /// 165 (0xA5) - Invalid delegate role
509    #[error("Invalid delegate role")]
510    InvalidDelegateRole,
511    /// 166 (0xA6) - Print supply is required for non-fungibles
512    #[error("Print supply is required for non-fungibles")]
513    MissingPrintSupply,
514    /// 167 (0xA7) - Missing master edition account
515    #[error("Missing master edition account")]
516    MissingMasterEditionAccount,
517    /// 168 (0xA8) - Amount must be greater than zero
518    #[error("Amount must be greater than zero")]
519    AmountMustBeGreaterThanZero,
520    /// 169 (0xA9) - Invalid delegate args
521    #[error("Invalid delegate args")]
522    InvalidDelegateArgs,
523    /// 170 (0xAA) - Missing address for locked transfer
524    #[error("Missing address for locked transfer")]
525    MissingLockedTransferAddress,
526    /// 171 (0xAB) - Invalid destination address for locked transfer
527    #[error("Invalid destination address for locked transfer")]
528    InvalidLockedTransferAddress,
529    /// 172 (0xAC) - Exceeded account realloc increase limit
530    #[error("Exceeded account realloc increase limit")]
531    DataIncrementLimitExceeded,
532    /// 173 (0xAD) - Cannot update the rule set of a programmable asset that has a delegate
533    #[error("Cannot update the rule set of a programmable asset that has a delegate")]
534    CannotUpdateAssetWithDelegate,
535    /// 174 (0xAE) - Invalid token amount for this operation or token standard
536    #[error("Invalid token amount for this operation or token standard")]
537    InvalidAmount,
538    /// 175 (0xAF) - Missing master edition mint account
539    #[error("Missing master edition mint account")]
540    MissingMasterEditionMintAccount,
541    /// 176 (0xB0) - Missing master edition token account
542    #[error("Missing master edition token account")]
543    MissingMasterEditionTokenAccount,
544    /// 177 (0xB1) - Missing edition marker account
545    #[error("Missing edition marker account")]
546    MissingEditionMarkerAccount,
547    /// 178 (0xB2) - Cannot burn while persistent delegate is set
548    #[error("Cannot burn while persistent delegate is set")]
549    CannotBurnWithDelegate,
550    /// 179 (0xB3) - Missing edition account
551    #[error("Missing edition account")]
552    MissingEdition,
553    /// 180 (0xB4) - Invalid Associated Token Account Program
554    #[error("Invalid Associated Token Account Program")]
555    InvalidAssociatedTokenAccountProgram,
556    /// 181 (0xB5) - Invalid InstructionsSysvar
557    #[error("Invalid InstructionsSysvar")]
558    InvalidInstructionsSysvar,
559    /// 182 (0xB6) - Invalid or Unneeded parent accounts
560    #[error("Invalid or Unneeded parent accounts")]
561    InvalidParentAccounts,
562    /// 183 (0xB7) - Authority cannot apply all update args
563    #[error("Authority cannot apply all update args")]
564    InvalidUpdateArgs,
565    /// 184 (0xB8) - Token account does not have enough tokens
566    #[error("Token account does not have enough tokens")]
567    InsufficientTokenBalance,
568    /// 185 (0xB9) - Missing collection account
569    #[error("Missing collection account")]
570    MissingCollectionMint,
571    /// 186 (0xBA) - Missing collection master edition account
572    #[error("Missing collection master edition account")]
573    MissingCollectionMasterEdition,
574    /// 187 (0xBB) - Invalid token record account
575    #[error("Invalid token record account")]
576    InvalidTokenRecord,
577    /// 188 (0xBC) - The close authority needs to be revoked by the Utility Delegate
578    #[error("The close authority needs to be revoked by the Utility Delegate")]
579    InvalidCloseAuthority,
580    /// 189 (0xBD) - Invalid or removed instruction
581    #[error("Invalid or removed instruction")]
582    InvalidInstruction,
583    /// 190 (0xBE) - Missing delegate record
584    #[error("Missing delegate record")]
585    MissingDelegateRecord,
586    /// 191 (0xBF) -
587    #[error("")]
588    InvalidFeeAccount,
589    /// 192 (0xC0) -
590    #[error("")]
591    InvalidMetadataFlags,
592    /// 193 (0xC1) - Cannot change the update authority with a delegate
593    #[error("Cannot change the update authority with a delegate")]
594    CannotChangeUpdateAuthorityWithDelegate,
595    /// 194 (0xC2) - Invalid mint extension type
596    #[error("Invalid mint extension type")]
597    InvalidMintExtensionType,
598    /// 195 (0xC3) - Invalid mint close authority
599    #[error("Invalid mint close authority")]
600    InvalidMintCloseAuthority,
601    /// 196 (0xC4) - Invalid metadata pointer
602    #[error("Invalid metadata pointer")]
603    InvalidMetadataPointer,
604    /// 197 (0xC5) - Invalid token extension type
605    #[error("Invalid token extension type")]
606    InvalidTokenExtensionType,
607    /// 198 (0xC6) - Missing immutable owner extension
608    #[error("Missing immutable owner extension")]
609    MissingImmutableOwnerExtension,
610    /// 199 (0xC7) - Expected account to be uninitialized
611    #[error("Expected account to be uninitialized")]
612    ExpectedUninitializedAccount,
613    /// 200 (0xC8) - Edition account has an invalid length
614    #[error("Edition account has an invalid length")]
615    InvalidEditionAccountLength,
616    /// 201 (0xC9) - Account has already been resized
617    #[error("Account has already been resized")]
618    AccountAlreadyResized,
619    /// 202 (0xCA) - Conditions for closing not met
620    #[error("Conditions for closing not met")]
621    ConditionsForClosingNotMet,
622}
623
624impl solana_program::program_error::PrintProgramError for MplTokenMetadataError {
625    fn print<E>(&self) {
626        solana_program::msg!(&self.to_string());
627    }
628}