NotifyError
NotifyError = {
Refunded: {block_index: [] | [BlockIndex];reason:string; }; } | {InvalidTransaction:string; } | {Other: {error_code:bigint;error_message:string; }; } | {Processing:null; } | {TransactionTooOld:BlockIndex; }
Defined in: packages/canisters/src/declarations/cmc/cmc.d.ts:170
Type Declaration
Section titled “Type Declaration”{ Refunded: { block_index: [] | [BlockIndex]; reason: string; }; }
Refunded
Section titled “Refunded”Refunded:
object
The payment processing failed and the payment was returned the caller. This is a non-retriable error.
Refunded.block_index
Section titled “Refunded.block_index”block_index: [] | [
BlockIndex]
The index of the block containing the refund.
Refunded.reason
Section titled “Refunded.reason”reason:
string
The reason for the refund.
{ InvalidTransaction: string; }
InvalidTransaction
Section titled “InvalidTransaction”InvalidTransaction:
string
The transaction does not satisfy the cycle minting canister payment protocol. The text contains the description of the problem. This is a non-retriable error.
{ Other: { error_code: bigint; error_message: string; }; }
Other:
object
Other error.
Other.error_code
Section titled “Other.error_code”error_code:
bigint
Other.error_message
Section titled “Other.error_message”error_message:
string
{ Processing: null; }
Processing
Section titled “Processing”Processing:
null
The same payment is already being processed by a concurrent request. This is a retriable error.
{ TransactionTooOld: BlockIndex; }
TransactionTooOld
Section titled “TransactionTooOld”TransactionTooOld:
BlockIndex
The payment was too old to be processed. The value of the variant is the oldest block index that can still be processed. This a non-retriable error.