|
@@ -25,6 +25,9 @@ pub enum Error {
|
|
|
/// Redb Storage Error
|
|
/// Redb Storage Error
|
|
|
#[error(transparent)]
|
|
#[error(transparent)]
|
|
|
Storage(#[from] Box<redb::StorageError>),
|
|
Storage(#[from] Box<redb::StorageError>),
|
|
|
|
|
+ /// Upgrade Transaction Error
|
|
|
|
|
+ #[error(transparent)]
|
|
|
|
|
+ Upgrade(#[from] Box<redb::UpgradeError>),
|
|
|
/// Serde Json Error
|
|
/// Serde Json Error
|
|
|
#[error(transparent)]
|
|
#[error(transparent)]
|
|
|
Serde(#[from] serde_json::Error),
|
|
Serde(#[from] serde_json::Error),
|
|
@@ -111,3 +114,9 @@ impl From<redb::StorageError> for Error {
|
|
|
Self::Storage(Box::new(e))
|
|
Self::Storage(Box::new(e))
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+impl From<redb::UpgradeError> for Error {
|
|
|
|
|
+ fn from(e: redb::UpgradeError) -> Self {
|
|
|
|
|
+ Self::Upgrade(Box::new(e))
|
|
|
|
|
+ }
|
|
|
|
|
+}
|