#[derive(
Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, Display, Error
)]
#[display(doc_comments)]
pub struct DerivePatternError;
#[derive(Debug, Display, From)]
#[display(doc_comments)]
pub enum DeriveError {
InconsistentKeyNetwork,
InconsistentKeyDerivePattern,
#[from(DerivePatternError)]
DerivePatternMismatch,
NoKeys,
NoAddressForDescriptor,
DescriptorFailure,
}
impl std::error::Error for DeriveError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match self {
DeriveError::InconsistentKeyNetwork => None,
DeriveError::InconsistentKeyDerivePattern => None,
DeriveError::DerivePatternMismatch => None,
DeriveError::NoKeys => None,
DeriveError::NoAddressForDescriptor => None,
DeriveError::DescriptorFailure => None,
}
}
}