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§
Functions§
- busy_
condition - The
busycondition: 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
error any of its causes is aCommandFailure. - not_
found_ condition - The
not-foundcondition: the named entity does not exist;detailnames the native. - unavailable_
condition - The
unavailablecondition: the database cannot be reached right now.