nydus_error/lib.rs
1// Copyright 2020 Ant Group. All rights reserved.
2//
3// SPDX-License-Identifier: Apache-2.0
4
5//! Error handling utilities and helpers for Nydus.
6//!
7//! The `nydus-error` crate provides commonly used error handling utilities and helpers for Nydus,
8//! including:
9//! - [`fn make_error()`](error.fn.make_error.html): display error messages with line number,
10//! file path and optional backtrace.
11//! - Macros for commonly used error code, such as `einval!()`, `enosys!()` etc.
12//! - [`struct ErrorHolder`](logger.struct.ErrorHolder.html): a circular ring buffer to hold latest
13//! error messages.
14
15#[macro_use]
16extern crate log;
17
18#[macro_use]
19pub mod error;
20
21pub mod logger;