pub enum IcrcAccountTransactionsError {
InvalidLimit {
limit: u32,
},
Query(IcrcError),
IndexDiscovery {
ledger_canister_id: String,
source: IcrcError,
},
IndexUnavailable {
ledger_canister_id: String,
reason: String,
},
IndexLedgerMismatch {
index_canister_id: String,
expected_ledger_canister_id: String,
actual_ledger_canister_id: String,
},
IndexQuery {
index_canister_id: String,
message: String,
},
}Expand description
IcrcAccountTransactionsError
Error surfaced while resolving and querying an ICRC account index.
Variants§
InvalidLimit
The caller requested an empty page.
Query(IcrcError)
A ledger, index, principal, Candid, or transport operation failed.
IndexDiscovery
ICRC-106 discovery could not be queried or decoded.
Fields
ICRC-106 discovery did not yield an index canister.
IndexLedgerMismatch
The selected index reports a different ledger identity.
Fields
IndexQuery
The index returned an application-level account-history error.
Trait Implementations§
Source§impl Debug for IcrcAccountTransactionsError
impl Debug for IcrcAccountTransactionsError
Source§impl Error for IcrcAccountTransactionsError
impl Error for IcrcAccountTransactionsError
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 IcrcAccountTransactionsError
impl RefUnwindSafe for IcrcAccountTransactionsError
impl Send for IcrcAccountTransactionsError
impl Sync for IcrcAccountTransactionsError
impl Unpin for IcrcAccountTransactionsError
impl UnsafeUnpin for IcrcAccountTransactionsError
impl UnwindSafe for IcrcAccountTransactionsError
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