Skip to main content

ave_core/system/
error.rs

1//! System initialization error types.
2//!
3
4use thiserror::Error;
5
6/// Errors that can occur during system initialization.
7#[derive(Debug, Clone, Error)]
8pub enum SystemError {
9    /// Failed to create Wasmtime engine.
10    #[error("failed to create Wasmtime engine: {0}")]
11    EngineCreation(String),
12
13    /// Failed to open database.
14    #[error("failed to open database: {0}")]
15    DatabaseOpen(String),
16
17    /// Failed to compute password hash.
18    #[error("failed to compute password hash: {0}")]
19    PasswordHash(String),
20
21    /// Failed to convert hash to array.
22    #[error("failed to convert hash to array: {0}")]
23    HashArrayConversion(String),
24
25    /// Failed to create encrypted key.
26    #[error("failed to create encrypted key: {0}")]
27    EncryptedKeyCreation(String),
28
29    /// Failed to create root actor.
30    #[error("failed to create root actor: {0}")]
31    RootActorCreation(String),
32
33    /// Failed to build external database.
34    #[error("failed to build external database: {0}")]
35    ExternalDbBuild(String),
36}