1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum DbCoreError {
5 #[error("failed to read snapshot: {0}")]
6 SnapshotRead(String),
7
8 #[error("failed to write snapshot: {0}")]
9 SnapshotWrite(String),
10
11 #[error("failed to write migration: {0}")]
12 MigrationWrite(String),
13
14 #[error("row mapping error: {0}")]
15 RowMapping(String),
16
17 #[error("connection initialization error: {0}")]
18 Connection(String),
19
20 #[error("failed to read journal: {0}")]
21 JournalRead(String),
22
23 #[error("failed to write journal: {0}")]
24 JournalWrite(String),
25}