1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use ndarray::ShapeError; pub type Result<T> = ::std::result::Result<T, Error>; use super::plan::InputMismatchError; #[derive(Debug, IntoEnum)] pub enum Error { InvalidPlanError(InvalidPlanError), ShapeError(ShapeError), InputMismatchError(InputMismatchError), } #[derive(Debug, new)] pub struct InvalidPlanError {}