use thiserror::Error;
use crate::TenantId;
#[derive(Debug, Error)]
pub enum TenantResolverError {
#[error("tenant not found: {tenant_id}")]
TenantNotFound {
tenant_id: TenantId,
},
#[error("unauthorized")]
Unauthorized,
#[error("no plugin available")]
NoPluginAvailable,
#[error("service unavailable: {0}")]
ServiceUnavailable(String),
#[error("internal error: {0}")]
Internal(String),
}