Execution Error Codes
This section covers smart contract execution error codes.
ApiError of one of these sub-types maps to an exit code with an offset defined by the sub-type. For example, an
ApiError::User(2) maps to an exit code of
65536 + 2). You can find a mapping from contract exit codes to
ApiError variants here.