cargo_packager_resource_resolver/
error.rs1use std::path::PathBuf;
6
7pub type Result<T> = std::result::Result<T, Error>;
9
10#[derive(Debug, thiserror::Error)]
12#[non_exhaustive]
13pub enum Error {
14 #[error(transparent)]
15 Io(#[from] std::io::Error),
16 #[error("Unkown package format")]
18 UnkownPackageFormat,
19 #[error("Unsupported package format")]
21 UnsupportedPackageFormat,
22 #[error("Couldn't find `APPDIR` environment variable")]
24 AppDirNotFound,
25 #[error("`APPDIR` or `APPIMAGE` environment variable found but this application was not detected as an AppImage; this might be a security issue.")]
27 InvalidAppImage,
28 #[error("Couldn't find parent of {0}")]
30 ParentNotFound(PathBuf),
31}