Crate nydus_error

Crate nydus_error 

Source
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.

Modules§

error
logger

Macros§

bail_einval
Return EINVAL error with formatted error message.
bail_eio
Return EIO error with formatted error message.
eacces
ealready
ebadf
einval
eio
eisdir
enoent
enosys
enotdir
eother
epipe
last_error