mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-24 09:58:35 -04:00
20 lines
438 B
Rust
20 lines
438 B
Rust
pub mod locations;
|
|
pub mod volumes;
|
|
use thiserror::Error;
|
|
|
|
use crate::{job, prisma};
|
|
|
|
use self::locations::LocationError;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum SysError {
|
|
#[error("Location error")]
|
|
LocationError(#[from] LocationError),
|
|
#[error("Error with system volumes")]
|
|
VolumeError(String),
|
|
#[error("Error from job runner")]
|
|
JobError(#[from] job::JobError),
|
|
#[error("Database error")]
|
|
DatabaseError(#[from] prisma::QueryError),
|
|
}
|