pub enum SwigError {
Show 19 variants
InvalidAuthorityType,
Base58DecodeError(Error),
InterfaceError(String),
InvalidSwigData,
AuthorityNotFound,
InvalidSwigAccountDiscriminator,
InvalidPermission(u8),
InvalidSecp256k1,
CurrentSlotNotSet,
SwigDataNotFound,
InvalidProgramScope,
CounterNotSet,
SlotRequired,
DataTooShort {
expected: usize,
actual: usize,
},
RoleNotFound(u32),
InvalidUpdateOperation(u8),
MessageCompilationError(String),
TransactionError(String),
TransactionFailedWithLogs {
error: String,
logs: Vec<String>,
},
}Expand description
Errors that can occur when using the Swig wallet SDK.
Variants§
InvalidAuthorityType
Base58DecodeError(Error)
InterfaceError(String)
InvalidSwigData
AuthorityNotFound
InvalidSwigAccountDiscriminator
InvalidPermission(u8)
InvalidSecp256k1
CurrentSlotNotSet
SwigDataNotFound
InvalidProgramScope
CounterNotSet
SlotRequired
DataTooShort
RoleNotFound(u32)
InvalidUpdateOperation(u8)
MessageCompilationError(String)
TransactionError(String)
TransactionFailedWithLogs
Trait Implementations§
Source§impl Error for SwigError
impl Error for SwigError
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()
Auto Trait Implementations§
impl Freeze for SwigError
impl RefUnwindSafe for SwigError
impl Send for SwigError
impl Sync for SwigError
impl Unpin for SwigError
impl UnsafeUnpin for SwigError
impl UnwindSafe for SwigError
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