1 | use crate::storage::Error as StorageError; |
2 | |
3 | #[derive(thiserror::Error, Debug)] |
4 | pub enum Error { |
5 | #[error("IO Failure: {0}")] |
6 | Storage(StorageError), |
7 | #[error("Streaming error: {0}")] |
8 | Stream(String), |
9 | #[error("Namespace Invalid: {0}")] |
10 | Namespace(String), |
11 | #[error("Error parsing OCI Specification: {0}")] |
12 | OciSpec(#[from] oci_spec::OciSpecError) |
13 | } |