Show / Hide Table of Contents

Enum TrapCode

Represents the code associated with a trap.

Namespace: Wasmtime
Assembly: Wasmtime.Dotnet.dll
Syntax
public enum TrapCode : int

Fields

Name Description
BadConversionToInteger

The trap was the result of a failed float-to-int conversion.

BadSignature

The trap was the result of a signature mismatch on indirect call.

HeapMisaligned

The trap was the result of a wasm atomic operation that was presented with a misaligned linear-memory address.

IndirectCallToNull

The trap was the result of an indirect call to a null table entry.

IntegerDivisionByZero

The trap was the result of an integer division by zero.

IntegerOverflow

The trap was the result of an integer arithmetic operation that overflowed.

Interrupt

The trap was the result of interrupting execution.

MemoryOutOfBounds

The trap was the result of an out-of-bounds memory access.

OutOfFuel

The trap was the result of running out of the configured fuel amount.

StackOverflow

The trap was the result of exhausting the available stack space.

TableOutOfBounds

The trap was the result of an out-of-bounds access to a table.

Undefined

The trap has no associated trap code.

Unreachable

The trap was the result of executing the unreachable instruction.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX