ic_asset/error/
compute_evidence.rs1use crate::error::create_project_asset::CreateProjectAssetError;
2use crate::error::gather_asset_descriptors::GatherAssetDescriptorsError;
3use crate::error::get_asset_properties::GetAssetPropertiesError;
4use crate::error::hash_content::HashContentError;
5use ic_agent::AgentError;
6use thiserror::Error;
7
8use super::AssembleCommitBatchArgumentError;
9
10#[derive(Error, Debug)]
12pub enum ComputeEvidenceError {
13 #[error(transparent)]
15 AssembleCommitBatchArgumentFailed(#[from] AssembleCommitBatchArgumentError),
16
17 #[error(transparent)]
19 ProcessProjectAsset(#[from] CreateProjectAssetError),
20
21 #[error(transparent)]
23 GatherAssetDescriptors(#[from] GatherAssetDescriptorsError),
24
25 #[error(transparent)]
27 GetAssetProperties(#[from] GetAssetPropertiesError),
28
29 #[error(transparent)]
31 HashContent(#[from] HashContentError),
32
33 #[error("Failed to list assets")]
35 ListAssets(#[source] AgentError),
36}