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
17
18
#[derive(thiserror::Error, Debug)]
#[non_exhaustive]
pub enum StorageError {
	#[error("Database error occurred: {0}")]
	DatabaseError(#[from] sea_orm::DbErr),
	#[error("Database transaction error occurred: {0}")]
	DatabaseTransactionError(#[from] sea_orm::TransactionError<sea_orm::DbErr>),
	#[error("Input/Output error occurred: {0}")]
	IoError(#[from] std::io::Error),
	#[error("Path contains non-UTF-8 characters")]
	InvalidUtf8Path,
	#[error("Supplied JSON value doesn't match the required structure: {0}")]
	InvalidJsonParameters(#[from] serde_json::Error),
	#[error("Required percentage from 0 to 100, but got `{0}`")]
	InvalidPercentageNumber(i8),
	#[error("Integer conversion error occurred: {0}")]
	IntegerConvertionError(#[from] std::num::TryFromIntError),
}