#[derive(Debug)]
pub enum SandboxError {
ExportFailed(std::io::Error),
CopyFailed(super::super::vfs::VfsError),
SyncBackFailed(std::io::Error),
}
impl std::fmt::Display for SandboxError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Self::ExportFailed(e) => write!(f, "export failed: {e}"),
Self::CopyFailed(e) => write!(f, "copy to host failed: {e}"),
Self::SyncBackFailed(e) => write!(f, "sync back failed: {e}"),
}
}
}
impl std::error::Error for SandboxError {}