pub enum OciError {
Common(CommonError),
InvalidVersion(String),
MissingField(&'static str),
InvalidConfig(String),
BundleNotFound(PathBuf),
ConfigNotFound(PathBuf),
InvalidBundle(String),
ContainerNotFound(String),
HookFailed {
path: PathBuf,
reason: String,
},
HookTimeout {
path: PathBuf,
timeout: u32,
},
InvalidPath(String),
Json(Error),
}Expand description
Errors that can occur during OCI operations.
Variants§
Common(CommonError)
Common errors shared across ArcBox crates.
InvalidVersion(String)
Invalid OCI version.
MissingField(&'static str)
Missing required field.
InvalidConfig(String)
Invalid configuration.
BundleNotFound(PathBuf)
Bundle not found.
ConfigNotFound(PathBuf)
Config file not found in bundle.
InvalidBundle(String)
Invalid bundle structure.
ContainerNotFound(String)
Container not found.
HookFailed
Hook execution failed.
HookTimeout
Hook timeout.
InvalidPath(String)
Invalid path.
Json(Error)
JSON parsing error.
Trait Implementations§
Source§impl Error for OciError
impl Error for OciError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CommonError> for OciError
impl From<CommonError> for OciError
Source§fn from(source: CommonError) -> Self
fn from(source: CommonError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OciError
impl !RefUnwindSafe for OciError
impl Send for OciError
impl Sync for OciError
impl Unpin for OciError
impl UnsafeUnpin for OciError
impl !UnwindSafe for OciError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more