aleym_core 0.1.0-alpha.1

Extensible news aggregation and knowledge-base engine (Core Library Component of Aleym)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::{db, inform, net};

#[expect(missing_docs, reason = "Variants' names and error messages are descriptive")]
#[derive(thiserror::Error, Debug)]
#[non_exhaustive]
pub enum Error {
	#[error("Storage error occurred: {0}")]
	StorageError(#[from] db::StorageError),
	#[error("Network error occurred: {0}")]
	NetworkError(#[from] net::NetworkError),
	#[error("Informant error occurred: {0}")]
	InformantError(#[from] inform::InformantError),
	#[cfg(feature = "_informant")]
	#[error("Scheduler error occurred: {0}")]
	SchedulerError(#[from] crate::ml::SchedulerError),
}