pub enum Error {
NotAServico(KindMismatch),
UnsupportedServicoCount(ServicoCountMismatch),
MissingField(&'static str),
Yaml(Error),
Render(RenderError),
}Expand description
Errors caixa-flux can raise.
Variants§
NotAServico(KindMismatch)
The caixa’s :kind doesn’t match what caixa-flux targets
(this renderer only emits programs.yaml entries +
GitRepository/HelmRelease/Kustomization bundles for
:kind Servico). Lifted from a prior NotAServico(CaixaKind)
arm to wrap caixa_core::KindMismatch so the diagnostic
names the offending caixa’s :nome (not just its kind),
shared verbatim with caixa-helm and caixa-mesh.
UnsupportedServicoCount(ServicoCountMismatch)
The caixa’s :servicos list doesn’t carry exactly one entry —
the V0 contract every Servico-kind caixa satisfies (one
ComputeUnit YAML pointer per Servico, matching the one
programs.yaml entry / cluster bundle this renderer emits).
Lifted from a prior UnsupportedServicoCount(usize) arm to
wrap caixa_core::ServicoCountMismatch so the diagnostic
names the offending caixa’s :nome (not just the count),
shared verbatim with caixa-helm (the peer per-Servico
renderer running the same V0 invariant on the
lareira-<nome> chart-dir axis).
MissingField(&'static str)
Yaml(Error)
Render(RenderError)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()