Expand description
Error handling utilities and helpers for Nydus.
The nydus-error
crate provides commonly used error handling utilities and helpers for Nydus,
including:
fn make_error()
: display error messages with line number, file path and optional backtrace.- Macros for commonly used error code, such as
einval!()
,enosys!()
etc. struct ErrorHolder
: a circular ring buffer to hold latest error messages.