Mirror of https://github.com/roostorg/osprey
github.com/roostorg/osprey
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum DiscoveryError {
5 #[error("Response has no index")]
6 NoIndex,
7 #[error("Node has no value")]
8 NoNodeValue,
9 #[error("Failed to resolve hostname to ip. hostname={}", hostname)]
10 FailedToResolveHostname { hostname: String },
11 #[error("No ring configured but select_key called.")]
12 NoRingConfigured,
13 #[error("No services in discovery.")]
14 NoServices,
15}