2021-12-14 18:04:51 +08:00
|
|
|
use crate::FlowyError;
|
|
|
|
|
2023-01-31 08:28:31 +08:00
|
|
|
impl std::convert::From<flowy_sqlite::Error> for FlowyError {
|
2023-02-13 09:29:49 +08:00
|
|
|
fn from(error: flowy_sqlite::Error) -> Self {
|
2023-08-22 00:19:15 +08:00
|
|
|
FlowyError::internal().with_context(error)
|
2023-02-13 09:29:49 +08:00
|
|
|
}
|
2021-12-14 18:04:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
impl std::convert::From<::r2d2::Error> for FlowyError {
|
2023-02-13 09:29:49 +08:00
|
|
|
fn from(error: r2d2::Error) -> Self {
|
2023-08-22 00:19:15 +08:00
|
|
|
FlowyError::internal().with_context(error)
|
2023-02-13 09:29:49 +08:00
|
|
|
}
|
2021-12-14 18:04:51 +08:00
|
|
|
}
|