solana_program/address_lookup_table/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error, PartialEq, Eq, Clone)]
4pub enum AddressLookupError {
5    /// Attempted to lookup addresses from a table that does not exist
6    #[error("Attempted to lookup addresses from a table that does not exist")]
7    LookupTableAccountNotFound,
8
9    /// Attempted to lookup addresses from an account owned by the wrong program
10    #[error("Attempted to lookup addresses from an account owned by the wrong program")]
11    InvalidAccountOwner,
12
13    /// Attempted to lookup addresses from an invalid account
14    #[error("Attempted to lookup addresses from an invalid account")]
15    InvalidAccountData,
16
17    /// Address lookup contains an invalid index
18    #[error("Address lookup contains an invalid index")]
19    InvalidLookupIndex,
20}