Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions crates/harmonia-host/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@ taxis.workspace = true
epignosis.workspace = true
kritike.workspace = true
komide.workspace = true
zetesis.workspace = true
ergasia.workspace = true
syntaxis.workspace = true
aitesis.workspace = true
syndesmos.workspace = true
prostheke.workspace = true
clap.workspace = true
tokio.workspace = true
tokio-util.workspace = true
axum.workspace = true
reqwest.workspace = true
sqlx.workspace = true
snafu.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
Expand Down
49 changes: 49 additions & 0 deletions crates/harmonia-host/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use snafu::Snafu;

#[derive(Debug, Snafu)]
#[snafu(visibility(pub))]
#[expect(dead_code, reason = "variants used as subsystems gain route handlers")]
pub enum HostError {
#[snafu(display("configuration error: {source}"))]
Config {
Expand Down Expand Up @@ -54,4 +55,52 @@ pub enum HostError {
#[snafu(implicit)]
location: snafu::Location,
},

#[snafu(display("indexer error: {source}"))]
Indexer {
#[snafu(source(from(zetesis::ZetesisError, Box::new)))]
source: Box<zetesis::ZetesisError>,
#[snafu(implicit)]
location: snafu::Location,
},

#[snafu(display("download engine error: {source}"))]
DownloadEngine {
#[snafu(source(from(ergasia::ErgasiaError, Box::new)))]
source: Box<ergasia::ErgasiaError>,
#[snafu(implicit)]
location: snafu::Location,
},

#[snafu(display("download queue error: {source}"))]
DownloadQueue {
#[snafu(source(from(syntaxis::SyntaxisError, Box::new)))]
source: Box<syntaxis::SyntaxisError>,
#[snafu(implicit)]
location: snafu::Location,
},

#[snafu(display("request service error: {source}"))]
RequestService {
#[snafu(source(from(aitesis::AitesisError, Box::new)))]
source: Box<aitesis::AitesisError>,
#[snafu(implicit)]
location: snafu::Location,
},

#[snafu(display("external integration error: {source}"))]
ExternalIntegration {
#[snafu(source(from(syndesmos::SyndesmodError, Box::new)))]
source: Box<syndesmos::SyndesmodError>,
#[snafu(implicit)]
location: snafu::Location,
},

#[snafu(display("subtitle service error: {source}"))]
SubtitleService {
#[snafu(source(from(prostheke::ProsthekeError, Box::new)))]
source: Box<prostheke::ProsthekeError>,
#[snafu(implicit)]
location: snafu::Location,
},
}
Loading
Loading