1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Copyright 2019 Johannes Köster, University of Duisburg-Essen.
// Licensed under the MIT license (http://opensource.org/licenses/MIT)
// This file may not be copied, modified, or distributed
// except according to those terms.

//! Error definitions for the `probs` module.
use thiserror::Error;

#[derive(Error, Copy, Clone, PartialEq, PartialOrd, Debug, Serialize, Deserialize)]
pub enum Error {
    #[error("probabilty {} not in interval [0,1]", prob)]
    InvalidProb { prob: f64 },
}
pub type Result<T, E = Error> = std::result::Result<T, E>;