Defines error types for Docker execution sandbox operations.
// Source: https://github.com/suyoumo/ClawProBench | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Error types for the Docker execution sandbox.
use std::time::Duration;
/// Errors that can occur in the sandbox system.
#[derive(Debug, thiserror::Error)]
pub enum SandboxError {
/// Docker daemon is not available or not running.
#[error("Docker not available: {reason}")]
DockerNotAvailable { reason: String },
/// Failed to create container.
#[error("Container creation failed: {reason}")]
ContainerCreationFailed { reason: String },
/// Failed to start container.
#[error("Container start failed: {reason}")]
ContainerStartFailed { reason: Str
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key