Skip to main content

Module host_failure

Module host_failure 

Source
Expand description

Typed marker for native failures that originate in host infrastructure.

A native turns a CmdError into a wasmtime::Error; the infrastructure variants (database, config, server) ride as a CommandFailure cause so callers can tell them from failures the script author caused, without parsing messages.

Structs§

CommandFailure

Functions§

busy_condition
The busy condition: a write met concurrent ones on every attempt.
condition_code
The code of the first host condition in err’s causes.
condition_text
The message of the first host condition in err’s causes.
is_host_failure
True when err or any of its causes is a CommandFailure.
not_found_condition
The not-found condition: the named entity does not exist; detail names the native.
unavailable_condition
The unavailable condition: the database cannot be reached right now.