use std::process::ExitStatus;
#[derive(Debug, thiserror::Error)]
pub enum SandboxError {
#[error("failed to parse sandbox ID")]
ParseSandboxId(#[from] uuid::Error),
#[error("failed to execute wsb command")]
ExecuteWsbCommand(#[source] std::io::Error),
#[error("wsb command exited with non-successful exit status: {status}")]
WsbCommand {
status: ExitStatus,
#[source]
source: Option<Box<dyn std::error::Error + Send + Sync + 'static>>,
},
#[error("failed to deserialize wsb command response")]
DeserializeResponse(#[source] serde_json::Error),
}