Show / Hide Table of Contents

Struct TrapAccessor

Provides access to a WebAssembly trap result

Namespace: Wasmtime
Assembly: Wasmtime.Dotnet.dll
Syntax
public ref readonly struct TrapAccessor

Properties

| Improve this Doc View Source

Message

Get the message string

Declaration
public readonly string Message { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

TrapCode

Get the TrapCode

Declaration
public readonly TrapCode TrapCode { get; }
Property Value
Type Description
TrapCode

Methods

| Improve this Doc View Source

GetException()

Get a TrapException which contains all information about this trap

Declaration
public readonly TrapException GetException()
Returns
Type Description
TrapException

A TrapException object which contains all the information about this trap in one convenient wrapper

| Improve this Doc View Source

GetFrames()

Get the trap frames

Declaration
public readonly List<TrapFrame> GetFrames()
Returns
Type Description
List<TrapFrame>

A list of stack frames indicating where the trap occured, the first item in the list represents the innermost stack frame

| Improve this Doc View Source

GetMessageBytes(Span<Byte>, Int32)

Copy the bytes of the message into a span

Declaration
public readonly int GetMessageBytes(Span<byte> output, int offset = 0)
Parameters
Type Name Description
Span<System.Byte> output

Destination span to write bytes to

System.Int32 offset

Offset in the source span to begin copying from

Returns
Type Description
System.Int32

The total length of the source span

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