diff options
author | 2024-12-14 11:25:31 -0800 | |
---|---|---|
committer | 2024-12-14 13:35:02 -0800 | |
commit | ed73a37d2498a51af3cbefe69f46223b103d71f5 (patch) | |
tree | 25123738c474c15d1eddfd67a546e0887cd9f606 /src/error.rs | |
download | restic-operator-ed73a37d2498a51af3cbefe69f46223b103d71f5.tar.gz restic-operator-ed73a37d2498a51af3cbefe69f46223b103d71f5.tar.zst restic-operator-ed73a37d2498a51af3cbefe69f46223b103d71f5.zip |
Initial Commit
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs new file mode 100644 index 0000000..fa28b1f --- /dev/null +++ b/src/error.rs @@ -0,0 +1,12 @@ +#[derive(Debug, thiserror::Error)] +pub enum Error { + /// Any error originating from the `kube-rs` crate + #[error("Kubernetes reported error: {0}")] + KubeError(#[from] kube::Error), + /// Error in serializing the resticprofile config to TOML + #[error("Error creating resticprofile config: {0}")] + TomlSerializeError(#[from] toml::ser::Error), + /// Missing Namespace + #[error("Namespace not found")] + MissingNamespace, +} |