1
2
3
4
5
6
7
8
9
10
11
12
use snafu::Snafu;

#[derive(Snafu, Debug)]
pub enum FSRSError {
    NotEnoughData,
    Interrupted,
    InvalidWeights,
    OptimalNotFound,
    InvalidInput,
}

pub type Result<T, E = FSRSError> = std::result::Result<T, E>;