pub enum TokenSdkError {
Show 39 variants
InsufficientBalance,
SerializationError,
CpiError(String),
CannotCompressAndDecompress,
CompressionCannotBeSetTwice,
InconsistentCompressDecompressState,
BothCompressAndDecompress,
InvalidCompressDecompressAmount,
MethodUsed,
DecompressedMintConfigRequired,
InvalidCompressInputOwner,
AccountBorrowFailed,
InvalidAccountData,
MissingCpiAccount,
TooManyAccounts,
NonContinuousIndices,
PackedAccountIndexOutOfBounds,
CannotMintWithDecompressedInCpiWrite,
RentAuthorityIsNone,
IncompleteSplInterface,
SplInterfaceRequired,
UseRegularSplTransfer,
CannotDetermineAccountType,
CpiContextRequired,
MissingMintAccount,
MissingSplTokenProgram,
MissingSplInterfacePda,
MissingSplInterfacePdaBump,
InvalidCpiContext,
NoInputAccounts,
MissingCompressibleExtension,
InvalidTokenAccount,
SplTokenProgramMismatch,
CompressedTokenTypes(LightTokenSdkTypeError),
TokenError(TokenError),
LightSdkError(LightSdkError),
LightSdkTypesError(LightSdkTypesError),
ZeroCopyError(ZeroCopyError),
AccountError(AccountError),
}Variants§
InsufficientBalance
SerializationError
CpiError(String)
CannotCompressAndDecompress
CompressionCannotBeSetTwice
InconsistentCompressDecompressState
BothCompressAndDecompress
InvalidCompressDecompressAmount
MethodUsed
DecompressedMintConfigRequired
InvalidCompressInputOwner
AccountBorrowFailed
InvalidAccountData
MissingCpiAccount
TooManyAccounts
NonContinuousIndices
PackedAccountIndexOutOfBounds
CannotMintWithDecompressedInCpiWrite
RentAuthorityIsNone
IncompleteSplInterface
SplInterfaceRequired
UseRegularSplTransfer
CannotDetermineAccountType
CpiContextRequired
MissingMintAccount
MissingSplTokenProgram
MissingSplInterfacePda
MissingSplInterfacePdaBump
InvalidCpiContext
NoInputAccounts
MissingCompressibleExtension
InvalidTokenAccount
SplTokenProgramMismatch
CompressedTokenTypes(LightTokenSdkTypeError)
TokenError(TokenError)
LightSdkError(LightSdkError)
LightSdkTypesError(LightSdkTypesError)
ZeroCopyError(ZeroCopyError)
AccountError(AccountError)
Trait Implementations§
Source§impl Debug for TokenSdkError
impl Debug for TokenSdkError
Source§impl Display for TokenSdkError
impl Display for TokenSdkError
Source§impl Error for TokenSdkError
impl Error for TokenSdkError
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 TokenSdkError
impl From<AccountError> for TokenSdkError
Source§fn from(source: AccountError) -> Self
fn from(source: AccountError) -> Self
Converts to this type from the input type.
Source§impl From<LightSdkError> for TokenSdkError
impl From<LightSdkError> for TokenSdkError
Source§fn from(source: LightSdkError) -> Self
fn from(source: LightSdkError) -> Self
Converts to this type from the input type.
Source§impl From<LightSdkTypesError> for TokenSdkError
impl From<LightSdkTypesError> for TokenSdkError
Source§fn from(source: LightSdkTypesError) -> Self
fn from(source: LightSdkTypesError) -> Self
Converts to this type from the input type.
Source§impl From<LightTokenSdkTypeError> for TokenSdkError
impl From<LightTokenSdkTypeError> for TokenSdkError
Source§fn from(source: LightTokenSdkTypeError) -> Self
fn from(source: LightTokenSdkTypeError) -> Self
Converts to this type from the input type.
Source§impl From<TokenError> for TokenSdkError
impl From<TokenError> for TokenSdkError
Source§fn from(source: TokenError) -> Self
fn from(source: TokenError) -> Self
Converts to this type from the input type.
Source§impl From<TokenSdkError> for ProgramError
Available on non-crate feature anchor only.
impl From<TokenSdkError> for ProgramError
Available on non-crate feature
anchor only.Source§fn from(e: TokenSdkError) -> Self
fn from(e: TokenSdkError) -> Self
Converts to this type from the input type.
Source§impl From<TokenSdkError> for u32
impl From<TokenSdkError> for u32
Source§fn from(e: TokenSdkError) -> Self
fn from(e: TokenSdkError) -> Self
Converts to this type from the input type.
Source§impl From<ZeroCopyError> for TokenSdkError
impl From<ZeroCopyError> for TokenSdkError
Source§fn from(source: ZeroCopyError) -> Self
fn from(source: ZeroCopyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TokenSdkError
impl RefUnwindSafe for TokenSdkError
impl Send for TokenSdkError
impl Sync for TokenSdkError
impl Unpin for TokenSdkError
impl UnwindSafe for TokenSdkError
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