appview/db/src/error.rs

11 lines
300 B
Rust
Raw Normal View History

2025-06-13 10:02:01 -07:00
#[non_exhaustive]
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("Database Implementation Error: {0}")]
Backend(#[from] sqlx::Error),
2025-06-17 13:55:30 -07:00
#[error("AT Protocol Implementation Error: {0}")]
Atproto(#[from] atproto::error::Error),
2025-06-13 10:02:01 -07:00
}
pub type Result<T> = std::result::Result<T, Error>;