Handle Send Errors
riveign opened this issue · comments
Ignacio Rivera commented
Description
We want to handle the different errors that may occur during a transaction, right now we are only showing that there has been an error while we know there is more information to show to the user and to us so in this eventuality we can know what happened.
- We need to map all the errors that can happen during a send
- Create a handler for them in the send flow
- Display a human readable error with an extra error code
Possible errors:
Insufficient balance #100
IC Error #200
- .
- .
Canister Trap #300
- Register dip20 token which don’t respect the send interface - Register token don't respect the interface - 300
- Register dip20 token which don’t respect the send interface - Canister out of cycles - 301
- Insufficient Balance - InsufficientBalance | InsufficientFund - 100
Raw Error #400
Unknown error #600
- .