You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ERROR_INTERNAL | 0x00 | Internal application error, forward to the Firmware team for analysis. |
31
+
| ERROR_WRONG_AMOUNT | 0x01 | The amount does not match the one validated in Exchange. |
32
+
| ERROR_WRONG_DESTINATION | 0x02 | The destination address does not match the one validated in Exchange. |
33
+
| ERROR_WRONG_FEES | 0x03 | The fees are different from what was validated in Exchange. |
34
+
| ERROR_WRONG_METHOD | 0x04 | The method used is invalid in Exchange context. |
35
+
| ERROR_CROSSCHAIN_WRONG_MODE | 0x05 | The mode used for the cross-chain hash validation is not supported. |
36
+
| ERROR_CROSSCHAIN_WRONG_METHOD | 0x06 | The method used is invalid in cross-chain Exchange context. |
37
+
| ERROR_CROSSCHAIN_WRONG_HASH | 0x07 | The hash for the cross-chain transaction does not match the validated value. |
38
+
| ERROR_GENERIC | 0xFF | A generic or unspecified error not covered by the specific error codes above.<br>Refer to the remaining bytes for further details on the error. |
33
39
34
-
The lower byte can be set by the application to refine the error code returned
40
+
The lower byte can be set by the application to refine the error code returned.
35
41
36
-
So the error code for ERROR_WRONG_METHOD would be 0x04XX with XX being application specific (can be 00 if there is nothing to refine)
42
+
So the error code for `ERROR_WRONG_METHOD` would be `0x04XX` with `XX` being application specific
43
+
(can be `00` if there is nothing to refine).
37
44
38
45
The remaining bytes of the data are application-specific and can include, but are not limited to:
46
+
39
47
- Debugging information (e.g., error logs or internal state).
40
48
- Field values (e.g., expected vs actual amounts, destination, fees).
41
49
- More specific error codes tailored to the application's context.
42
-
*/
50
+
51
+
The standard application library define several helper function to return error codes from the Coin
0 commit comments