Skip to main content

Module error_ffi

Module error_ffi 

Source
Expand description

Error and log plumbing shared with shim.c.

The asdf_shim_* functions below are the Rust side of that split. They are exported because shim.c resolves them by name, and they sit inside the asdf_ namespace so the symbol-leakage gate accepts them. They are internal plumbing, not public API – upstream does the same for the asdf_file_error_common family, which its headers call out as “exported for the macros, but intentionally left undocumented”.

The C API reports errors as a code plus a message string owned by the handle they were recorded against, so the handle keeps the CString alive until the next error replaces it.

Structs§

ErrorState
The error state a file or value handle carries.

Enums§

LogLevel
Severity levels, matching asdf_log_level_t.

Functions§

asdf_file_error_oom⚠
Record an out-of-memory error against a file handle.
asdf_file_error_system⚠
Record an OS-level error against a file handle.
asdf_shim_error_format
The format string for an error code, or null.
asdf_shim_error_set⚠
Record an already-formatted error against a handle.
asdf_shim_error_set_system⚠
Record an OS-level error against a handle.
asdf_shim_log_message⚠
Emit an already-formatted log message.
asdf_value_error_oom⚠
Record an out-of-memory error against a value handle.
asdf_value_error_system⚠
Record an OS-level error against a value handle.
default_log_level
The threshold used when a file carries no explicit configuration.
error_log_level
The severity a given error code is logged at.