stock-trek 0.8.4

Stock Trek time-series analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Error, Debug)]
#[non_exhaustive]
#[repr(u8)]
pub enum ValueError {
    #[error("{} not found for '{}'", name, key)]
    NotFound { name: String, key: String },
    #[error("Value expects type '{}' but found type '{}'", expected, found)]
    IncorrectType { expected: String, found: String },
    #[error("Values expected to be equal but were '{}' and '{}'", a, b)]
    ValuesNotEqual { a: String, b: String },
}