mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
12 lines
311 B
Rust
12 lines
311 B
Rust
pub type Result<T> = std::result::Result<T, Error>;
|
|
|
|
#[derive(Debug, thiserror::Error)]
|
|
pub enum Error {
|
|
#[error("Sqlite Error: {0}")]
|
|
SqlxError(#[from] sqlx::Error),
|
|
#[error("Migrate Error: {0}")]
|
|
MigrateError(#[from] sqlx::migrate::MigrateError),
|
|
#[error("Invalid operation")]
|
|
InvalidOperation,
|
|
}
|