pub enum LightSdkError {
Show 47 variants
ConstraintViolation,
InvalidLightSystemProgram,
ExpectedAccounts,
ExpectedAddressTreeInfo,
ExpectedAddressRootIndex,
ExpectedData,
ExpectedDiscriminator,
ExpectedHash,
ExpectedLightSystemAccount(String),
ExpectedMerkleContext,
ExpectedRootIndex,
TransferFromNoInput,
TransferFromNoLamports,
TransferFromInsufficientLamports,
TransferIntegerOverflow,
Borsh,
FewerAccountsThanSystemAccounts,
InvalidCpiSignerAccount,
MissingField(String),
OutputStateTreeIndexIsNone,
InitAddressIsNone,
InitWithAddressIsNone,
InitWithAddressOutputIsNone,
MetaMutAddressIsNone,
MetaMutInputIsNone,
MetaMutOutputLamportsIsNone,
MetaMutOutputIsNone,
MetaCloseAddressIsNone,
MetaCloseInputIsNone,
CpiAccountsIndexOutOfBounds(usize),
InvalidCpiContextAccount,
InvalidSolPoolPdaAccount,
InvalidCpiAccountsOffset,
ExpectedNoData,
CpiContextOrderingViolation,
InvalidMerkleTreeIndex,
ReadOnlyAccountCannotUseToAccountInfo,
NotReadOnlyAccount,
ReadOnlyAccountsNotSupportedInCpiContext,
AccountError(AccountError),
Hasher(HasherError),
ZeroCopy(ZeroCopyError),
ProgramError(ProgramError),
CompressedAccountError(CompressedAccountError),
ExpectedTreeInfo,
ExpectedSelfProgram,
ExpectedCpiContext,
}Variants§
ConstraintViolation
InvalidLightSystemProgram
ExpectedAccounts
ExpectedAddressTreeInfo
ExpectedAddressRootIndex
ExpectedData
ExpectedDiscriminator
ExpectedHash
ExpectedLightSystemAccount(String)
ExpectedMerkleContext
ExpectedRootIndex
TransferFromNoInput
TransferFromNoLamports
TransferFromInsufficientLamports
TransferIntegerOverflow
Borsh
FewerAccountsThanSystemAccounts
InvalidCpiSignerAccount
MissingField(String)
OutputStateTreeIndexIsNone
InitAddressIsNone
InitWithAddressIsNone
InitWithAddressOutputIsNone
MetaMutAddressIsNone
MetaMutInputIsNone
MetaMutOutputLamportsIsNone
MetaMutOutputIsNone
MetaCloseAddressIsNone
MetaCloseInputIsNone
CpiAccountsIndexOutOfBounds(usize)
InvalidCpiContextAccount
InvalidSolPoolPdaAccount
InvalidCpiAccountsOffset
ExpectedNoData
CpiContextOrderingViolation
InvalidMerkleTreeIndex
ReadOnlyAccountCannotUseToAccountInfo
NotReadOnlyAccount
ReadOnlyAccountsNotSupportedInCpiContext
AccountError(AccountError)
Hasher(HasherError)
ZeroCopy(ZeroCopyError)
ProgramError(ProgramError)
CompressedAccountError(CompressedAccountError)
ExpectedTreeInfo
ExpectedSelfProgram
ExpectedCpiContext
Trait Implementations§
Source§impl Debug for LightSdkError
impl Debug for LightSdkError
Source§impl Display for LightSdkError
impl Display for LightSdkError
Source§impl Error for LightSdkError
impl Error for LightSdkError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AccountError> for LightSdkError
impl From<AccountError> for LightSdkError
Source§fn from(source: AccountError) -> Self
fn from(source: AccountError) -> Self
Converts to this type from the input type.
Source§impl From<CompressedAccountError> for LightSdkError
impl From<CompressedAccountError> for LightSdkError
Source§fn from(source: CompressedAccountError) -> Self
fn from(source: CompressedAccountError) -> Self
Converts to this type from the input type.
Source§impl From<HasherError> for LightSdkError
impl From<HasherError> for LightSdkError
Source§fn from(source: HasherError) -> Self
fn from(source: HasherError) -> Self
Converts to this type from the input type.
Source§impl From<LightSdkError> for ProgramError
impl From<LightSdkError> for ProgramError
Source§fn from(e: LightSdkError) -> Self
fn from(e: LightSdkError) -> Self
Converts to this type from the input type.
Source§impl From<LightSdkError> for u32
impl From<LightSdkError> for u32
Source§fn from(e: LightSdkError) -> Self
fn from(e: LightSdkError) -> Self
Converts to this type from the input type.
Source§impl From<LightSdkTypesError> for LightSdkError
impl From<LightSdkTypesError> for LightSdkError
Source§fn from(e: LightSdkTypesError) -> Self
fn from(e: LightSdkTypesError) -> Self
Converts to this type from the input type.
Source§impl From<ProgramError> for LightSdkError
impl From<ProgramError> for LightSdkError
Source§fn from(source: ProgramError) -> Self
fn from(source: ProgramError) -> Self
Converts to this type from the input type.
Source§impl From<ZeroCopyError> for LightSdkError
impl From<ZeroCopyError> for LightSdkError
Source§fn from(source: ZeroCopyError) -> Self
fn from(source: ZeroCopyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LightSdkError
impl PartialEq for LightSdkError
impl StructuralPartialEq for LightSdkError
Auto Trait Implementations§
impl Freeze for LightSdkError
impl RefUnwindSafe for LightSdkError
impl Send for LightSdkError
impl Sync for LightSdkError
impl Unpin for LightSdkError
impl UnwindSafe for LightSdkError
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
Mutably borrows from an owned value. Read more