Wasmtime
|
Definition and accessors of wasmtime_error_t. More...
#include <wasm.h>
Go to the source code of this file.
Typedefs | |
typedef struct wasmtime_error | wasmtime_error_t |
Convenience alias for wasmtime_error. | |
Functions | |
void | wasmtime_error_delete (wasmtime_error_t *error) |
Deletes an error. | |
void | wasmtime_error_message (const wasmtime_error_t *error, wasm_name_t *message) |
Returns the string description of this error. More... | |
Definition and accessors of wasmtime_error_t.
void wasmtime_error_message | ( | const wasmtime_error_t * | error, |
wasm_name_t * | message | ||
) |
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.