wasmtime_trap_code_enum enum
\brief Trap codes for instruction traps.
Values
- WASMTIME_TRAP_CODE_STACK_OVERFLOW → const wasmtime_trap_code_enum
-
The current stack space was exhausted.
const wasmtime_trap_code_enum(0) - WASMTIME_TRAP_CODE_MEMORY_OUT_OF_BOUNDS → const wasmtime_trap_code_enum
-
An out-of-bounds memory access.
const wasmtime_trap_code_enum(1) - WASMTIME_TRAP_CODE_HEAP_MISALIGNED → const wasmtime_trap_code_enum
-
A wasm atomic operation was presented with a not-naturally-aligned linear-memory address.
const wasmtime_trap_code_enum(2) - WASMTIME_TRAP_CODE_TABLE_OUT_OF_BOUNDS → const wasmtime_trap_code_enum
-
An out-of-bounds access to a table.
const wasmtime_trap_code_enum(3) - WASMTIME_TRAP_CODE_INDIRECT_CALL_TO_NULL → const wasmtime_trap_code_enum
-
Indirect call to a null table entry.
const wasmtime_trap_code_enum(4) - WASMTIME_TRAP_CODE_BAD_SIGNATURE → const wasmtime_trap_code_enum
-
Signature mismatch on indirect call.
const wasmtime_trap_code_enum(5) - WASMTIME_TRAP_CODE_INTEGER_OVERFLOW → const wasmtime_trap_code_enum
-
An integer arithmetic operation caused an overflow.
const wasmtime_trap_code_enum(6) - WASMTIME_TRAP_CODE_INTEGER_DIVISION_BY_ZERO → const wasmtime_trap_code_enum
-
An integer division by zero.
const wasmtime_trap_code_enum(7) - WASMTIME_TRAP_CODE_BAD_CONVERSION_TO_INTEGER → const wasmtime_trap_code_enum
-
Failed float-to-int conversion.
const wasmtime_trap_code_enum(8) - WASMTIME_TRAP_CODE_UNREACHABLE_CODE_REACHED → const wasmtime_trap_code_enum
-
Code that was supposed to have been unreachable was reached.
const wasmtime_trap_code_enum(9) - WASMTIME_TRAP_CODE_INTERRUPT → const wasmtime_trap_code_enum
-
Execution has potentially run too long and may be interrupted.
const wasmtime_trap_code_enum(10) - WASMTIME_TRAP_CODE_OUT_OF_FUEL → const wasmtime_trap_code_enum
-
Execution has run out of the configured fuel amount.
const wasmtime_trap_code_enum(11) - WASMTIME_TRAP_CODE_ATOMIC_WAIT_NON_SHARED_MEMORY → const wasmtime_trap_code_enum
-
Used to indicate that a trap was raised by atomic wait operations on non shared memory.
const wasmtime_trap_code_enum(12) - WASMTIME_TRAP_CODE_NULL_REFERENCE → const wasmtime_trap_code_enum
-
Call to a null reference.
const wasmtime_trap_code_enum(13) - WASMTIME_TRAP_CODE_ARRAY_OUT_OF_BOUNDS → const wasmtime_trap_code_enum
-
Attempt to access beyond the bounds of an array.
const wasmtime_trap_code_enum(14) - WASMTIME_TRAP_CODE_ALLOCATION_TOO_LARGE → const wasmtime_trap_code_enum
-
Attempted an allocation that was too large to succeed.
const wasmtime_trap_code_enum(15) - WASMTIME_TRAP_CODE_CAST_FAILURE → const wasmtime_trap_code_enum
-
Attempted to cast a reference to a type that it is not an instance of.
const wasmtime_trap_code_enum(16) - WASMTIME_TRAP_CODE_CANNOT_ENTER_COMPONENT → const wasmtime_trap_code_enum
-
When the
component-modelfeature is enabled this trap represents a scenario where one component tried to call another component but it would have violated the reentrance rules of the component model, triggering a trap instead.const wasmtime_trap_code_enum(17) - WASMTIME_TRAP_CODE_NO_ASYNC_RESULT → const wasmtime_trap_code_enum
-
Async-lifted export failed to produce a result by calling
task.returnbefore returningSTATUS_DONEand/or after all host tasks completed.const wasmtime_trap_code_enum(18) - WASMTIME_TRAP_CODE_UNHANDLED_TAG → const wasmtime_trap_code_enum
-
We are suspending to a tag for which there is no active handler.
const wasmtime_trap_code_enum(19) - WASMTIME_TRAP_CODE_CONTINUATION_ALREADY_CONSUMED → const wasmtime_trap_code_enum
-
Attempt to resume a continuation twice.
const wasmtime_trap_code_enum(20) - WASMTIME_TRAP_CODE_DISABLED_OPCODE → const wasmtime_trap_code_enum
-
A Pulley opcode was executed at runtime when the opcode was disabled at compile time.
const wasmtime_trap_code_enum(21) - WASMTIME_TRAP_CODE_ASYNC_DEADLOCK → const wasmtime_trap_code_enum
-
Async event loop deadlocked; i.e. it cannot make further progress given that all host tasks have completed and any/all host-owned stream/future handles have been dropped.
const wasmtime_trap_code_enum(22) - WASMTIME_TRAP_CODE_CANNOT_LEAVE_COMPONENT → const wasmtime_trap_code_enum
-
When the
component-modelfeature is enabled this trap represents a scenario where a component instance tried to call an import or intrinsic when it wasn't allowed to, e.g. from a post-return function.const wasmtime_trap_code_enum(23) - WASMTIME_TRAP_CODE_CANNOT_BLOCK_SYNC_TASK → const wasmtime_trap_code_enum
-
A synchronous task attempted to make a potentially blocking call prior to returning.
const wasmtime_trap_code_enum(24) - WASMTIME_TRAP_CODE_INVALID_CHAR → const wasmtime_trap_code_enum
-
A component tried to lift a
charwith an invalid bit pattern.const wasmtime_trap_code_enum(25) - WASMTIME_TRAP_CODE_DEBUG_ASSERT_STRING_ENCODING_FINISHED → const wasmtime_trap_code_enum
-
Debug assertion generated for a fused adapter regarding the expected completion of a string encoding operation.
const wasmtime_trap_code_enum(26) - WASMTIME_TRAP_CODE_DEBUG_ASSERT_EQUAL_CODE_UNITS → const wasmtime_trap_code_enum
-
Debug assertion generated for a fused adapter regarding a string encoding operation.
const wasmtime_trap_code_enum(27) - WASMTIME_TRAP_CODE_DEBUG_ASSERT_POINTER_ALIGNED → const wasmtime_trap_code_enum
-
Debug assertion generated for a fused adapter regarding the alignment of a pointer.
const wasmtime_trap_code_enum(28) - WASMTIME_TRAP_CODE_DEBUG_ASSERT_UPPER_BITS_UNSET → const wasmtime_trap_code_enum
-
Debug assertion generated for a fused adapter regarding the upper bits of a 64-bit value.
const wasmtime_trap_code_enum(29) - WASMTIME_TRAP_CODE_STRING_OUT_OF_BOUNDS → const wasmtime_trap_code_enum
-
A component tried to lift or lower a string past the end of its memory.
const wasmtime_trap_code_enum(30) - WASMTIME_TRAP_CODE_LIST_OUT_OF_BOUNDS → const wasmtime_trap_code_enum
-
A component tried to lift or lower a list past the end of its memory.
const wasmtime_trap_code_enum(31) - WASMTIME_TRAP_CODE_INVALID_DISCRIMINANT → const wasmtime_trap_code_enum
-
A component used an invalid discriminant when lowering a variant value.
const wasmtime_trap_code_enum(32) - WASMTIME_TRAP_CODE_UNALIGNED_POINTER → const wasmtime_trap_code_enum
-
A component passed an unaligned pointer when lifting or lowering a value.
const wasmtime_trap_code_enum(33) - WASMTIME_TRAP_CODE_TASK_CANCEL_NOT_CANCELLED → const wasmtime_trap_code_enum
-
task.cancelinvoked in an invalid way.const wasmtime_trap_code_enum(34) - WASMTIME_TRAP_CODE_TASK_CANCEL_OR_RETURN_TWICE → const wasmtime_trap_code_enum
-
task.cancelortask.returncalled too many timesconst wasmtime_trap_code_enum(35) - WASMTIME_TRAP_CODE_SUBTASK_CANCEL_AFTER_TERMINAL → const wasmtime_trap_code_enum
-
subtask.cancelinvoked after it already finished.const wasmtime_trap_code_enum(36) - WASMTIME_TRAP_CODE_TASK_RETURN_INVALID → const wasmtime_trap_code_enum
-
task.returninvoked with an invalid type.const wasmtime_trap_code_enum(37) - WASMTIME_TRAP_CODE_WAITABLE_SET_DROP_HAS_WAITERS → const wasmtime_trap_code_enum
-
waitable-set.dropinvoked on a waitable set with waiters.const wasmtime_trap_code_enum(38) - WASMTIME_TRAP_CODE_SUBTASK_DROP_NOT_RESOLVED → const wasmtime_trap_code_enum
-
subtask.dropinvoked on a subtask that hasn't resolved yet.const wasmtime_trap_code_enum(39) - WASMTIME_TRAP_CODE_THREAD_NEW_INDIRECT_INVALID_TYPE → const wasmtime_trap_code_enum
-
thread.new-indirectinvoked with a function that has an invalid type.const wasmtime_trap_code_enum(40) - WASMTIME_TRAP_CODE_THREAD_NEW_INDIRECT_UNINITIALIZED → const wasmtime_trap_code_enum
-
thread.new-indirectinvoked with an uninitialized function reference.const wasmtime_trap_code_enum(41) - WASMTIME_TRAP_CODE_BACKPRESSURE_OVERFLOW → const wasmtime_trap_code_enum
-
Backpressure-related intrinsics overflowed the built-in counter.
const wasmtime_trap_code_enum(42) - WASMTIME_TRAP_CODE_UNSUPPORTED_CALLBACK_CODE → const wasmtime_trap_code_enum
-
Invalid code returned from
callbackofasync-lifted function.const wasmtime_trap_code_enum(43) - WASMTIME_TRAP_CODE_CANNOT_RESUME_THREAD → const wasmtime_trap_code_enum
-
Cannot resume a thread which is not suspended.
const wasmtime_trap_code_enum(44) - WASMTIME_TRAP_CODE_CONCURRENT_FUTURE_STREAM_OP → const wasmtime_trap_code_enum
-
Cannot issue a read/write on a future/stream while there is a pending operation already.
const wasmtime_trap_code_enum(45) - WASMTIME_TRAP_CODE_REFERENCE_COUNT_OVERFLOW → const wasmtime_trap_code_enum
-
A reference count (for e.g. an
error-context) overflowed.const wasmtime_trap_code_enum(46) - WASMTIME_TRAP_CODE_STREAM_OP_TOO_BIG → const wasmtime_trap_code_enum
-
A read/write on a stream must be <2**28 items.
const wasmtime_trap_code_enum(47) - WASMTIME_TRAP_CODE_WAITABLE_SYNC_AND_ASYNC → const wasmtime_trap_code_enum
-
The guest either attempted to add a waitable to a waitable set while it was being used in a synchronous operation or tried to use it in a synchronous operation while it was added to a waitable set.
const wasmtime_trap_code_enum(48) - WASMTIME_TRAP_CODE_UNCAUGHT_EXCEPTION → const wasmtime_trap_code_enum
-
An exception propagated out of a component without being caught.
const wasmtime_trap_code_enum(49) - WASMTIME_TRAP_READ_FROM_DROPPED_STREAM → const wasmtime_trap_code_enum
-
Guest attempted to read from a stream after being notified that the writable end was dropped.
const wasmtime_trap_code_enum(50) - WASMTIME_TRAP_WRITE_TO_DROPPED_STREAM → const wasmtime_trap_code_enum
-
Guest attempted to write to a stream after being notified that the readable end was dropped.
const wasmtime_trap_code_enum(51) - WASMTIME_TRAP_WRITE_TO_DROPPED_FUTURE → const wasmtime_trap_code_enum
-
Guest attempted to write to a future after being notified that the readable end was dropped.
const wasmtime_trap_code_enum(52) - WASMTIME_TRAP_LIFT_DROPPED_STREAM → const wasmtime_trap_code_enum
-
Guest attempted to lift a stream after being notified that the writable end was dropped.
const wasmtime_trap_code_enum(53) - WASMTIME_TRAP_CODE_TASK_RETURN_OR_CANCEL_SYNC_LIFTED → const wasmtime_trap_code_enum
-
task.returnortask.cancelwas called by a task which was not created by anasync-lifted export.const wasmtime_trap_code_enum(54)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromValue(
int value) → wasmtime_trap_code_enum
Constants
-
values
→ const List<
wasmtime_trap_code_enum> - A constant List of the values in this enum, in order of their declaration.