use thiserror::Error;
#[derive(Debug, Clone, Error)]
pub enum SystemError {
#[error("failed to create Wasmtime engine: {0}")]
EngineCreation(String),
#[error("failed to open database: {0}")]
DatabaseOpen(String),
#[error("failed to compute password hash: {0}")]
PasswordHash(String),
#[error("failed to convert hash to array: {0}")]
HashArrayConversion(String),
#[error("failed to create encrypted key: {0}")]
EncryptedKeyCreation(String),
#[error("failed to create root actor: {0}")]
RootActorCreation(String),
#[error("failed to build external database: {0}")]
ExternalDbBuild(String),
}