retable/
error.rs

1//! Error type.
2
3/// Error type.
4#[derive(thiserror::Error, Debug)]
5pub enum Error {
6    /// 根据所给prop未找到属性库
7    #[error("Prop [{0}] not exists.")]
8    PropError(String),
9
10    /// 根据所给key未找到入口
11    #[error("Key [{0}] not exists.")]
12    KeyError(String),
13
14    /// 底层数据库错误
15    #[error("Error from sled database.")]
16    SledError(#[from] sled::Error),
17
18    /// 溢出错误
19    #[error("Error when fmt str into marker.")]
20    OverflowError,
21}