use std::fmt::{self, Display};
#[derive(Copy, PartialEq, Eq, Clone, Debug)]
pub enum Error {
InvalidKey,
InvalidSS,
InvalidCom,
InvalidSig,
Phase5BadSum,
Phase6Error,
}
#[derive(Clone, Debug)]
pub struct ErrorType {
pub error_type: String,
pub bad_actors: Vec<usize>,
}
impl Display for Error {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{:?}", &self)
}
}
impl std::error::Error for Error {}