helm_wrapper_rs/error.rs
1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum HelmWrapperError {
5 #[error("Unable to understand helm response format")]
6 DeserializationError(#[from] serde_json::Error),
7
8 #[error("Unsupported helm non-utf8 output")]
9 NonUtf8Error(#[from] std::string::FromUtf8Error),
10
11 #[error("Helm command execution error")]
12 ExecutionError(#[from] std::io::Error),
13
14 #[error("Helm command execution error")]
15 Error,
16}