#[repr(u32)]pub enum AccountResolutionError {
Show 20 variants
IncorrectAccount = 2_724_315_840,
NotEnoughAccounts = 2724315841,
TlvUninitialized = 2724315842,
TlvInitialized = 2724315843,
TooManyPubkeys = 2724315844,
InvalidPubkey = 2724315845,
AccountTypeNotAccountMeta = 2724315846,
SeedConfigsTooLarge = 2724315847,
NotEnoughBytesForSeed = 2724315848,
InvalidBytesForSeed = 2724315849,
InvalidSeedConfig = 2724315850,
InstructionDataTooSmall = 2724315851,
AccountNotFound = 2724315852,
CalculationFailure = 2724315853,
AccountDataNotFound = 2724315854,
AccountDataTooSmall = 2724315855,
AccountFetchFailed = 2724315856,
NotEnoughBytesForPubkeyData = 2724315857,
InvalidBytesForPubkeyData = 2724315858,
InvalidPubkeyDataConfig = 2724315859,
}
Expand description
Errors that may be returned by the Account Resolution library.
Variants§
IncorrectAccount = 2_724_315_840
Incorrect account provided
NotEnoughAccounts = 2724315841
Not enough accounts provided
TlvUninitialized = 2724315842
No value initialized in TLV data
TlvInitialized = 2724315843
Some value initialized in TLV data
TooManyPubkeys = 2724315844
Too many pubkeys provided
InvalidPubkey = 2724315845
Failed to parse Pubkey
from bytes
AccountTypeNotAccountMeta = 2724315846
Attempted to deserialize an AccountMeta
but the underlying type has
PDA configs rather than a fixed address
SeedConfigsTooLarge = 2724315847
Provided list of seed configurations too large for a validation account
NotEnoughBytesForSeed = 2724315848
Not enough bytes available to pack seed configuration
InvalidBytesForSeed = 2724315849
The provided bytes are not valid for a seed configuration
InvalidSeedConfig = 2724315850
Tried to pack an invalid seed configuration
InstructionDataTooSmall = 2724315851
Instruction data too small for seed configuration
AccountNotFound = 2724315852
Could not find account at specified index
CalculationFailure = 2724315853
Error in checked math operation
AccountDataNotFound = 2724315854
Could not find account data at specified index
AccountDataTooSmall = 2724315855
Account data too small for requested seed configuration
AccountFetchFailed = 2724315856
Failed to fetch account
NotEnoughBytesForPubkeyData = 2724315857
Not enough bytes available to pack pubkey data configuration.
InvalidBytesForPubkeyData = 2724315858
The provided bytes are not valid for a pubkey data configuration
InvalidPubkeyDataConfig = 2724315859
Tried to pack an invalid pubkey data configuration
Trait Implementations§
source§impl Clone for AccountResolutionError
impl Clone for AccountResolutionError
source§fn clone(&self) -> AccountResolutionError
fn clone(&self) -> AccountResolutionError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccountResolutionError
impl Debug for AccountResolutionError
source§impl<T> DecodeError<T> for AccountResolutionError
impl<T> DecodeError<T> for AccountResolutionError
source§impl Display for AccountResolutionError
impl Display for AccountResolutionError
source§impl Error for AccountResolutionError
impl Error for AccountResolutionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<AccountResolutionError> for ProgramError
impl From<AccountResolutionError> for ProgramError
source§fn from(e: AccountResolutionError) -> Self
fn from(e: AccountResolutionError) -> Self
source§impl FromPrimitive for AccountResolutionError
impl FromPrimitive for AccountResolutionError
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read moresource§impl PartialEq for AccountResolutionError
impl PartialEq for AccountResolutionError
source§fn eq(&self, other: &AccountResolutionError) -> bool
fn eq(&self, other: &AccountResolutionError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PrintProgramError for AccountResolutionError
impl PrintProgramError for AccountResolutionError
impl Eq for AccountResolutionError
impl StructuralPartialEq for AccountResolutionError
Auto Trait Implementations§
impl Freeze for AccountResolutionError
impl RefUnwindSafe for AccountResolutionError
impl Send for AccountResolutionError
impl Sync for AccountResolutionError
impl Unpin for AccountResolutionError
impl UnwindSafe for AccountResolutionError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more