pub enum LightSdkError {
Show 33 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),
Hasher(HasherError),
ZeroCopy(ZeroCopyError),
ProgramError(ProgramError),
}
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)
Hasher(HasherError)
ZeroCopy(ZeroCopyError)
ProgramError(ProgramError)
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<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
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>
Converts
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>
Converts
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