use std::fmt::Debug;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error<E>
where
E: Debug + std::error::Error,
{
#[error("Function application failure: {0}")]
Apply(E),
#[error("DynamicHoneyBadger was not removed before restarting")]
DynamicHoneyBadgerNotRemoved,
#[error("Failed to start a new joining DynamicHoneyBadger: {0}")]
DynamicHoneyBadgerNewJoining(E),
}