use ckb_error::{def_error_base_on_kind, prelude::*};
#[derive(Error, Copy, Clone, Eq, PartialEq, Debug)]
pub enum ErrorKind {
#[error("The count of sigs should be less than privkeys.")]
SigCountOverflow,
#[error("The count of sigs is less than threshold.")]
SigNotEnough,
#[error("Failed to meet threshold {threshold}, actual: {pass_sigs}.")]
Threshold {
threshold: usize,
pass_sigs: usize,
},
}
def_error_base_on_kind!(Error, ErrorKind, "Multi-signature error.");