spl_token_metadata_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(hash_error_code_start = 901_952_957)]
7pub enum TokenMetadataError {
8    /// Incorrect account provided
9    #[error("Incorrect account provided")]
10    IncorrectAccount,
11    /// Mint has no mint authority
12    #[error("Mint has no mint authority")]
13    MintHasNoMintAuthority,
14    /// Incorrect mint authority has signed the instruction
15    #[error("Incorrect mint authority has signed the instruction")]
16    IncorrectMintAuthority,
17    /// Incorrect metadata update authority has signed the instruction
18    #[error("Incorrect metadata update authority has signed the instruction")]
19    IncorrectUpdateAuthority,
20    /// Token metadata has no update authority
21    #[error("Token metadata has no update authority")]
22    ImmutableMetadata,
23    /// Key not found in metadata account
24    #[error("Key not found in metadata account")]
25    KeyNotFound,
26}