pub enum IcError {
InsufficientLiquidCycleBalance {
available: u128,
required: u128,
},
CallPerformFailed,
CallRejected {
code: RejectCode,
message: String,
},
CandidDecodeFailed {
message: String,
},
}Expand description
Error returned by the Internet Computer when making an inter-canister call.
Variants§
InsufficientLiquidCycleBalance
The liquid cycle balance is insufficient to perform the call.
Fields
CallPerformFailed
The ic0.call_perform operation failed when performing the inter-canister call.
CallRejected
The inter-canister call is rejected.
CandidDecodeFailed
The response from the inter-canister call could not be decoded as Candid.
Trait Implementations§
Source§impl Error for IcError
impl Error for IcError
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 From<CallFailed> for IcError
impl From<CallFailed> for IcError
Source§fn from(err: CallFailed) -> Self
fn from(err: CallFailed) -> Self
Converts to this type from the input type.
Source§impl From<CandidDecodeFailed> for IcError
impl From<CandidDecodeFailed> for IcError
Source§fn from(err: CandidDecodeFailed) -> Self
fn from(err: CandidDecodeFailed) -> Self
Converts to this type from the input type.
impl Eq for IcError
impl StructuralPartialEq for IcError
Auto Trait Implementations§
impl Freeze for IcError
impl RefUnwindSafe for IcError
impl Send for IcError
impl Sync for IcError
impl Unpin for IcError
impl UnwindSafe for IcError
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