spl_transfer_hook_interface/
error.rs

1//! 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 = 2_110_272_652)]
7pub enum TransferHookError {
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    /// Program called outside of a token transfer
18    #[error("Program called outside of a token transfer")]
19    ProgramCalledOutsideOfTransfer,
20}