pub enum Error {
NotAServico(KindMismatch),
UnsupportedServicoCount(ServicoCountMismatch),
MissingField(&'static str),
Yaml(Error),
Render(RenderError),
Io(Error),
}Expand description
Errors caixa-helm can raise.
Variants§
NotAServico(KindMismatch)
The caixa’s :kind doesn’t match what caixa-helm targets
(this renderer only emits per-program lareira-<nome> charts
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-flux 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 Helm
chart 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-flux (the peer per-Servico renderer
running the same V0 invariant on the programs.yaml-entry axis).
MissingField(&'static str)
Yaml(Error)
Render(RenderError)
Io(Error)
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()