dfx_core/error/
canister.rs1use thiserror::Error;
2
3#[derive(Error, Debug)]
4pub enum CanisterBuilderError {
5 #[error("Failed to construct wallet canister caller")]
6 WalletCanisterCaller(#[source] ic_agent::AgentError),
7
8 #[error("Failed to build call sender")]
9 CallSenderBuildError(#[source] ic_agent::AgentError),
10}
11
12#[derive(Error, Debug)]
13pub enum CanisterInstallError {
14 #[error("Refusing to install canister without approval")]
15 UserConsent(#[source] crate::error::cli::UserConsent),
16
17 #[error(transparent)]
18 CanisterBuilderError(#[from] CanisterBuilderError),
19
20 #[error("Failed during wasm installation call")]
21 InstallWasmError(#[source] ic_agent::AgentError),
22}