mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 23:49:59 -07:00
19 lines
632 B
Rust
19 lines
632 B
Rust
use rayhunter::diag_device::DiagDeviceError;
|
|
use thiserror::Error;
|
|
|
|
use crate::qmdl_store::RecordingStoreError;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum RayhunterError {
|
|
#[error("Config file parsing error: {0}")]
|
|
ConfigFileParsingError(#[from] toml::de::Error),
|
|
#[error("Diag intialization error: {0}")]
|
|
DiagInitError(DiagDeviceError),
|
|
#[error("Tokio error: {0}")]
|
|
TokioError(#[from] tokio::io::Error),
|
|
#[error("QmdlStore error: {0}")]
|
|
QmdlStoreError(#[from] RecordingStoreError),
|
|
#[error("No QMDL store found at path {0}, but can't create a new one due to debug mode")]
|
|
NoStoreDebugMode(String),
|
|
}
|