pub enum FfiError {
Show 19 variants
Generic {
msg: String,
},
AmountOverflow,
DivisionByZero,
Amount {
msg: String,
},
PaymentFailed,
PaymentPending,
InsufficientFunds,
Database {
msg: String,
},
Network {
msg: String,
},
InvalidToken {
msg: String,
},
Wallet {
msg: String,
},
KeysetUnknown,
UnitNotSupported,
RuntimeTaskJoin {
msg: String,
},
InvalidMnemonic {
msg: String,
},
InvalidUrl {
msg: String,
},
InvalidHex {
msg: String,
},
InvalidCryptographicKey {
msg: String,
},
Serialization {
msg: String,
},
}Expand description
FFI Error type that wraps CDK errors for cross-language use
Variants§
Generic
Generic error with message
AmountOverflow
Amount overflow
DivisionByZero
Division by zero
Amount
Amount error
PaymentFailed
Payment failed
PaymentPending
Payment pending
InsufficientFunds
Insufficient funds
Database
Database error
Network
Network error
InvalidToken
Invalid token
Wallet
Wallet error
KeysetUnknown
Keyset unknown
UnitNotSupported
Unit not supported
RuntimeTaskJoin
Runtime task join error
InvalidMnemonic
Invalid mnemonic phrase
InvalidUrl
URL parsing error
InvalidHex
Hex format error
InvalidCryptographicKey
Cryptographic key parsing error
Serialization
Serialization/deserialization error
Trait Implementations§
Source§impl<UT> ConvertError<UT> for FfiError
impl<UT> ConvertError<UT> for FfiError
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Error for FfiError
impl Error for FfiError
1.30.0 · 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<UT> Lift<UT> for FfiError
impl<UT> Lift<UT> for FfiError
type FfiType = RustBuffer
fn try_read(buf: &mut &[u8]) -> Result<Self>
fn try_lift(v: RustBuffer) -> Result<Self>
Source§fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
fn try_lift_from_rust_buffer(v: RustBuffer) -> Result<Self, Error>
Convenience method
Source§impl<UT> Lower<UT> for FfiError
impl<UT> Lower<UT> for FfiError
type FfiType = RustBuffer
fn write(obj: Self, buf: &mut Vec<u8>)
fn lower(obj: Self) -> RustBuffer
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Convenience method
Source§impl<UT> LowerError<UT> for FfiError
impl<UT> LowerError<UT> for FfiError
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Lower this value for scaffolding function return Read more
Auto Trait Implementations§
impl Freeze for FfiError
impl RefUnwindSafe for FfiError
impl Send for FfiError
impl Sync for FfiError
impl Unpin for FfiError
impl UnwindSafe for FfiError
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, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.