1use thiserror::Error;
5
6#[derive(Debug, Clone, Error)]
8pub enum SystemError {
9 #[error("failed to create Wasmtime engine: {0}")]
11 EngineCreation(String),
12
13 #[error("failed to open database: {0}")]
15 DatabaseOpen(String),
16
17 #[error("failed to compute password hash: {0}")]
19 PasswordHash(String),
20
21 #[error("failed to convert hash to array: {0}")]
23 HashArrayConversion(String),
24
25 #[error("failed to create encrypted key: {0}")]
27 EncryptedKeyCreation(String),
28
29 #[error("failed to create root actor: {0}")]
31 RootActorCreation(String),
32
33 #[error("failed to build external database: {0}")]
35 ExternalDbBuild(String),
36}