Module error

Source
Expand description

Error code for signaling error while processing a host function.

API inspired by std::io::Error and std::io::ErrorKind but somewhat more memory efficient.

Enums§

CallError
Represents the result of a host function call.
CommonResult
TrapCode
Wasm trap code.

Constants§

CALLEE_GAS_DEPLETED
CALLEE_NOT_CALLABLE
CALLEE_REVERTED
CALLEE_SUCCEEDED
CALLEE_TRAPPED
HOST_ERROR_INTERNAL
HOST_ERROR_INVALID_DATA
HOST_ERROR_INVALID_INPUT
HOST_ERROR_MAX_MESSAGES_PER_BLOCK_EXCEEDED
HOST_ERROR_MESSAGE_TOPIC_FULL
HOST_ERROR_NOT_FOUND
HOST_ERROR_PAYLOAD_TOO_LONG
HOST_ERROR_SUCCESS
HOST_ERROR_TOO_MANY_TOPICS
HOST_ERROR_TOPIC_TOO_LONG

Functions§

result_from_code