anyclaw-sdk-runtime 0.1.0

SDK for building anyclaw runtime extensions (container + proxy + network)
Documentation
use thiserror::Error;

/// Errors that can occur in runtime SDK operations.
#[derive(Debug, Error)]
#[non_exhaustive]
pub enum RuntimeSdkError {
    /// The runtime failed to start the environment.
    #[error("start failed: {0}")]
    StartFailed(String),

    /// A process execution request failed.
    #[error("exec failed: {0}")]
    ExecFailed(String),

    /// The runtime is not in a valid state for the requested operation.
    #[error("invalid state: {0}")]
    InvalidState(String),

    /// A protocol-level error (JSON-RPC framing, unexpected message).
    #[error("protocol error: {0}")]
    Protocol(String),

    /// An I/O error occurred.
    #[error("io error: {0}")]
    Io(#[from] std::io::Error),
}