pub enum IcError {
CallRejected {
code: RejectCode,
message: String,
},
InsufficientLiquidCycleBalance {
available: u128,
required: u128,
},
}Expand description
Error returned by the Internet Computer when making an HTTPs outcall.
Variants§
CallRejected
The inter-canister call is rejected.
Note that ic_cdk::call::Error::CallPerformFailed errors are also mapped to this variant
with an ic_error_types::RejectCode::SysFatal error code.
InsufficientLiquidCycleBalance
The liquid cycle balance is insufficient to perform the call.
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 HttpsOutcallError for IcError
impl HttpsOutcallError for IcError
Source§fn is_response_too_large(&self) -> bool
fn is_response_too_large(&self) -> bool
Determines whether the error indicates that the response was larger than the specified
max_response_bytes specified in the request. Read moreimpl 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