wasmtime_error_message function

  1. @Native<Void Function(Pointer<wasmtime_error_t>, Pointer<wasm_byte_vec_t>)>(ffi.Pointer<wasmtime_error_t>, ffi.Pointer<wasm_name_t>)>()
void wasmtime_error_message(
  1. Pointer<wasmtime_error_t> error,
  2. Pointer<wasm_byte_vec_t> message
)

\brief Returns the string description of this error.

This will "render" the error to a string and then return the string representation of the error to the caller. The message argument should be uninitialized before this function is called and the caller is responsible for deallocating it with #wasm_byte_vec_delete afterwards.

Implementation

@ffi.Native<
  ffi.Void Function(ffi.Pointer<wasmtime_error_t>, ffi.Pointer<wasm_name_t>)
>()
external void wasmtime_error_message(
  ffi.Pointer<wasmtime_error_t> error,
  ffi.Pointer<wasm_name_t> message,
);