1use rpsl::{attr::AttributeType, error::ParseError, expr::eval::EvaluationError, obj::RpslObject};
2
3#[derive(Debug, thiserror::Error)]
5pub enum Error {
6 #[error(transparent)]
8 Irr(#[from] irrc::Error),
9 #[error(transparent)]
11 Evaluation(#[from] EvaluationError),
12 #[error(transparent)]
14 Parse(#[from] ParseError),
15 #[error("failed to acquire the connection to the IRRd server")]
17 AcquireConnection,
18 #[error("no {0} attribute found in RPSL object {1}")]
20 FindAttribute(AttributeType, RpslObject),
21 #[error("unexpected RPSL object {0}")]
23 RpslObjectClass(RpslObject),
24}