Expand description
Error handling for the FFI layer.
This module defines the NemoFlowStatus enum returned by every exported
FFI function, along with thread-local storage for human-readable error
messages. After any non-Ok return, the caller should invoke
nemo_flow_last_error on the same thread to obtain a diagnostic string.
The error message remains valid until the next FFI call on that thread clears
it via clear_last_error.
Enums§
- Nemo
Flow Status - Status codes returned by all FFI functions.
Functions§
- clear_
last_ error - Clear the thread-local last-error message.
- last_
error_ message - Retrieve the last error message set on this thread, if any.
- nemo_
flow_ last_ error - Retrieve the last error message set on this thread, or null if no error
has occurred since the last
clear_last_errorcall. - nemo_
flow_ ⚠set_ last_ error_ message - Set the thread-local last-error message from foreign code.
- set_
last_ error - Store an error message in thread-local storage for later retrieval.
- status_
from_ error - Convert an
FlowErrorto anNemoFlowStatus, storing the error message in thread-local storage. - status_
from_ plugin_ error - Convert a
PluginErrorto anNemoFlowStatus, storing the error message in thread-local storage.