pub enum LauncherError {
Show 13 variants
Network {
source: Error,
},
Io {
source: Error,
},
Json {
source: Error,
},
Zip {
source: ZipError,
},
InvalidVersionId {
id: String,
},
UnsupportedPlatform {
os: String,
arch: String,
},
ChecksumMismatch {
path: PathBuf,
expected: String,
actual: String,
},
UnsafePath {
base: PathBuf,
path: PathBuf,
},
InvalidMavenCoordinate {
coordinate: String,
},
LoaderVersionNotFound {
loader: LoaderKind,
version: String,
},
InstallerFailed {
loader: LoaderKind,
status: Option<i32>,
},
MissingField {
context: String,
field: String,
},
Other {
message: String,
},
}Expand description
Errors produced by install, metadata, IO, and launch-command operations.
Variants§
Network
HTTP or request-building failure.
Io
Filesystem failure.
Json
JSON parse or serialization failure.
Zip
ZIP archive failure.
InvalidVersionId
Requested version id was not found or was not valid in context.
UnsupportedPlatform
Current or requested platform cannot be handled.
ChecksumMismatch
A downloaded file did not match its expected checksum.
Fields
UnsafePath
A joined path escaped the intended base directory.
InvalidMavenCoordinate
Maven coordinate parsing failed.
LoaderVersionNotFound
A requested loader version could not be resolved.
Fields
§
loader: LoaderKindLoader family being resolved.
InstallerFailed
A Forge or NeoForge installer process failed.
Fields
§
loader: LoaderKindLoader family whose installer failed.
MissingField
Required metadata was missing from a version/profile document.
Other
Miscellaneous error with a caller-facing message.
Trait Implementations§
Source§impl Debug for LauncherError
impl Debug for LauncherError
Source§impl Display for LauncherError
impl Display for LauncherError
Source§impl Error for LauncherError
impl Error for LauncherError
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<Error> for LauncherError
impl From<Error> for LauncherError
Source§impl From<Error> for LauncherError
impl From<Error> for LauncherError
Source§impl From<Error> for LauncherError
impl From<Error> for LauncherError
Auto Trait Implementations§
impl Freeze for LauncherError
impl !RefUnwindSafe for LauncherError
impl Send for LauncherError
impl Sync for LauncherError
impl Unpin for LauncherError
impl UnsafeUnpin for LauncherError
impl !UnwindSafe for LauncherError
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