use rpsl::{attr::AttributeType, error::ParseError, expr::eval::EvaluationError, obj::RpslObject};
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error(transparent)]
Irr(#[from] irrc::Error),
#[error(transparent)]
Evaluation(#[from] EvaluationError),
#[error(transparent)]
Parse(#[from] ParseError),
#[error("failed to acquire the connection to the IRRd server")]
AcquireConnection,
#[error("no {0} attribute found in RPSL object {1}")]
FindAttribute(AttributeType, RpslObject),
#[error("unexpected RPSL object {0}")]
RpslObjectClass(RpslObject),
}