1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#[derive(Debug, Fail)]
pub enum AnalysisError {
#[fail(display = "Missing profile ({}) required for the analysis ({}).", _0, _1)]
MissingProfile(&'static str, &'static str),
#[fail(display = "Missing value ({}) required for analysis ({}).", _0, _1)]
MissingValue(&'static str, &'static str),
#[fail(display = "Not enough data available for analysis ({}).", _0)]
NotEnoughData(&'static str),
#[fail(display = "Profile for {} is full of missing values, cannot do {} analysis.", _0, _1)]
NoDataProfile(&'static str, &'static str),
#[fail(display = "Invalid input to {}: {}", _0, _1)]
InvalidInput(&'static str, &'static str),
}
pub type Result<T> = ::std::result::Result<T, AnalysisError>;