ReactorErrorKind
ReactorErrorKind =
"invalid_args"|"unauthenticated"|"not_delivered"|"outcome_unknown"|"rejected"|"invalid_reply"|"canister_err"|"cancelled"
Defined in: core/src/errors.ts:54
What kind of failure a ReactorError reports.
invalid_args: the arguments could not be encoded, or the target canister id could not be resolved. Nothing was sent.unauthenticated: an update was attempted while not signed in. Nothing was sent.not_delivered: nothing that matters ran. Either the request was refused or never taken in (the replica or a boundary node turned it away, or the system could not take it in), or it was a query, which changes nothing, and no answer came back. A failed query may well have reached the canister, somayHaveExecutedcarries the guarantee: it isfalseon everynot_delivered, because a refused update never ran and a query changes nothing.outcome_unknown: an update went out and no trustworthy answer came back, so the canister may or may not have run it. So does a re-send of a writeclient.resendOf()offered that did not run, refused before it went out or turned away: the write it re-sends may have run all the same. Itscode,httpStatusandrejectCodesay why the re-send did not run (such ascaller_changed,target_changedorarg_changed), and itscauseis the re-send’s own error.rejected: the IC or the canister rejected the call;rejectCodesays which.invalid_reply: a reply arrived but did not decode as the method’s result.canister_err: the canister ran the call and replied with theErrarm of its result;erris typed. The outcome is that answer, somayHaveExecutedisfalse: re-sending is a new decision, not a retry.cancelled: the caller abandoned the call (an aborted query, a key whose principal is no longer current, a call on a disposed client (client_disposed), a read or an unsent write whosetimeoutMspassed (timeout), or an update aborted in flight). A write whosetimeoutMspassed after its request went out isoutcome_unknown(timeout) instead.mayHaveExecutedisfalsewhen nothing was sent, andtruefor an update aborted after its request may already have been delivered.