actr-hyper 0.3.1

Hyper — Actor platform infrastructure: sandbox, transport, scheduler, WASM engine, signing, AIS bootstrap, persistence & crypto primitives
Documentation
use thiserror::Error;

#[derive(Debug, Error)]
pub enum HyperError {
    /// Signed manifest section not found in package
    #[error("package manifest section not found")]
    ManifestNotFound,

    /// Invalid manifest data format
    #[error("invalid manifest: {0}")]
    InvalidManifest(String),

    /// binary_hash does not match recomputed result, package has been tampered with
    #[error("binary hash mismatch: package integrity check failed")]
    BinaryHashMismatch,

    /// MFR signature verification failed
    #[error("signature verification failed: {0}")]
    SignatureVerificationFailed(String),

    /// MFR certificate is untrusted (not registered with actrix or revoked)
    #[error("untrusted manufacturer: {0}")]
    UntrustedManufacturer(String),

    /// AIS registration bootstrap failed
    #[error("AIS bootstrap failed: {0}")]
    AisBootstrapFailed(String),

    /// Storage layer error
    #[error("storage error: {0}")]
    Storage(String),

    /// Configuration error
    #[error("config error: {0}")]
    Config(String),

    /// Namespace template variable missing
    #[error("namespace template variable `{0}` not available")]
    TemplateVariable(String),

    /// Runtime management error (spawn failure, process crash, etc.)
    #[error("runtime error: {0}")]
    Runtime(String),

    #[error(transparent)]
    Other(#[from] anyhow::Error),
}

pub(crate) type HyperResult<T> = Result<T, HyperError>;