#[non_exhaustive]pub enum Error {
Show 64 variants
Io(Error),
Json(Error),
Http(Error),
HttpRequest(HttpRequestError),
UnsupportedDriver {
id: String,
},
LoaderVersionRequired {
driver: String,
},
Infra(Error),
Shared(Error),
Storage(Error),
Runtime(Error),
BlockingTask(JoinError),
Launcher(Error),
SystemTime(SystemTimeError),
InvalidUrl {
context: String,
url: String,
source: Box<dyn StdError + Send + Sync>,
},
JoinUrl {
context: String,
base_url: String,
path: String,
source: Box<dyn StdError + Send + Sync>,
},
Origin(OriginError),
InvalidNotation {
label: String,
notation: String,
},
MavenLibraryMissingSource {
notation: String,
},
DecodeMavenMetadata {
source_label: String,
url: String,
source: Box<dyn StdError + Send + Sync>,
},
ReadVersionMetadata {
source: Box<Error>,
},
MissingVersionName {
path: PathBuf,
},
MissingVersionRootFileName {
path: PathBuf,
},
LoggingConfigMissing {
path: PathBuf,
},
ModulePathValueMissing,
ResolveModulePath,
VersionJarMissing {
path: PathBuf,
},
VersionNotPrepared {
version: String,
status: String,
},
ParseBaseMinecraftArguments {
source: Box<Error>,
},
InstanceNotFound {
name: String,
},
MissingParentDirectory {
context: String,
path: PathBuf,
},
InstallerCoordinateFileNameMissing {
notation: String,
},
ReadPersistedInstallProfile {
family_name: String,
path: PathBuf,
source: Error,
},
ReadPersistedEmbeddedVersion {
family_name: String,
path: PathBuf,
source: Error,
},
InstallerProfileMinecraftVersionMissing {
family_name: String,
},
InstallerProfileLoaderVersionMissing {
family_name: String,
loader_name: String,
},
InstallerGameVersionMismatch {
family_name: String,
actual: String,
expected: String,
},
InstallerLoaderVersionMismatch {
family_name: String,
actual: String,
expected: String,
},
ReadEmbeddedVersionJson {
family_name: String,
path: String,
source: Box<Error>,
},
DownloadInstaller {
family_name: String,
source: Error,
},
ReadInstallerProfile {
family_name: String,
source: Box<Error>,
},
ExtractInstallerMavenArtifacts {
family_name: String,
source: Box<Error>,
},
InstallerEmbeddedVersionMissing {
family_name: String,
},
DecodeEmbeddedVersion {
family_name: String,
source: Error,
},
InstallerNotPrepared {
family_name: String,
instance: String,
status: String,
},
MissingInstanceName {
family_name: String,
path: PathBuf,
},
DownloadInstallerProfileLibraries {
family_name: String,
source: Error,
},
ProcessorOutputsMissing {
family_name: String,
},
UnknownProcessorVariable {
family_name: String,
key: String,
},
RunProcessor {
family_name: String,
processor: String,
source: Error,
},
ProcessorFailed(Box<ProcessorFailure>),
JarMainClassMissing {
path: PathBuf,
},
CurrentDirectory {
path: PathBuf,
source: Error,
},
AssetHashTooShort {
hash: String,
},
VanillaVersionNotFound {
game_version: String,
},
RewriteUpstream {
family_name: String,
raw_url: String,
source: Box<Error>,
},
RiftReleaseAssetNotFound {
asset_name: String,
},
RiftReleaseTagMissingLoaderVersion {
tag_name: String,
},
ReadRiftProfile {
asset_name: String,
source: Error,
},
DecodeRiftProfile {
source: Error,
},
RiftGameVersionMismatch {
loader_version: String,
actual: String,
requested: String,
},
TrailingArgumentEscape,
UnterminatedArgumentQuote {
quote: char,
},
PatchMainClassConflict {
first_patch: String,
first_main_class: String,
second_patch: String,
second_main_class: String,
},
PatchOrderCycle {
cycle: Vec<String>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(Error)
Json(Error)
Http(Error)
HttpRequest(HttpRequestError)
UnsupportedDriver
LoaderVersionRequired
Infra(Error)
Storage(Error)
Runtime(Error)
BlockingTask(JoinError)
Launcher(Error)
SystemTime(SystemTimeError)
InvalidUrl
JoinUrl
Origin(OriginError)
InvalidNotation
MavenLibraryMissingSource
DecodeMavenMetadata
ReadVersionMetadata
MissingVersionName
MissingVersionRootFileName
LoggingConfigMissing
ModulePathValueMissing
ResolveModulePath
VersionJarMissing
VersionNotPrepared
ParseBaseMinecraftArguments
InstanceNotFound
MissingParentDirectory
InstallerCoordinateFileNameMissing
ReadPersistedInstallProfile
ReadPersistedEmbeddedVersion
InstallerProfileMinecraftVersionMissing
InstallerProfileLoaderVersionMissing
InstallerGameVersionMismatch
InstallerLoaderVersionMismatch
ReadEmbeddedVersionJson
DownloadInstaller
ReadInstallerProfile
ExtractInstallerMavenArtifacts
InstallerEmbeddedVersionMissing
DecodeEmbeddedVersion
InstallerNotPrepared
MissingInstanceName
DownloadInstallerProfileLibraries
ProcessorOutputsMissing
UnknownProcessorVariable
RunProcessor
ProcessorFailed(Box<ProcessorFailure>)
JarMainClassMissing
CurrentDirectory
AssetHashTooShort
VanillaVersionNotFound
RewriteUpstream
RiftReleaseAssetNotFound
RiftReleaseTagMissingLoaderVersion
ReadRiftProfile
DecodeRiftProfile
RiftGameVersionMismatch
TrailingArgumentEscape
UnterminatedArgumentQuote
PatchMainClassConflict
PatchOrderCycle
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<HttpRequestError> for Error
impl From<HttpRequestError> for Error
Source§fn from(source: HttpRequestError) -> Self
fn from(source: HttpRequestError) -> Self
Converts to this type from the input type.
Source§impl From<OriginError> for Error
impl From<OriginError> for Error
Source§fn from(source: OriginError) -> Self
fn from(source: OriginError) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Forget for Error
impl Freeze for Errorwhere
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
*const ErrorImpl is !null: Freeze,
PhantomData<ErrorImpl>: Freeze,
*const Inner is !null: Freeze,
PhantomData<Inner>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<u16>: Freeze,
&'static str: Freeze,
String: Freeze,
*const dyn Any + Send is !null: Freeze,
PhantomData<dyn Any + Send>: Freeze,
NonZero<u64>: Freeze,
*const dyn Error + Send + Sync is !null: Freeze,
PhantomData<dyn Error + Send + Sync>: Freeze,
PhantomData<DownloadFailure>: Freeze,
PhantomData<TaskId>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
*const Error is !null: Freeze,
PhantomData<Error>: Freeze,
*const ProcessorFailure is !null: Freeze,
PhantomData<ProcessorFailure>: Freeze,
PhantomData<String>: Freeze,
impl Move for Error
impl Send for Errorwhere
Repr: Send,
BoxRaw<ErrorImpl>: Send,
BoxRaw<Inner>: Send,
RawVecInner: Send,
NonZero<u16>: Send,
&'static str: Send,
String: Send,
SyncWrapper<Box<dyn Any + Send>>: Send,
NonZero<u64>: Send,
BoxRaw<dyn Error + Send + Sync>: Send,
BoxRaw<Error>: Send,
BoxRaw<Error>: Send,
BoxRaw<ProcessorFailure>: Send,
impl Sync for Error
impl Unpin for Errorwhere
*const () is !null: Unpin,
&'static SimpleMessage: Unpin,
*const Custom is !null: Unpin,
Box<ErrorImpl>: Unpin,
Box<Inner>: Unpin,
*const u8 is !null: Unpin,
NonZero<u16>: Unpin,
&'static str: Unpin,
String: Unpin,
Box<dyn Any + Send>: Unpin,
NonZero<u64>: Unpin,
Box<dyn Error + Send + Sync>: Unpin,
Box<Error>: Unpin,
Box<Error>: Unpin,
Box<ProcessorFailure>: Unpin,
impl UnsafeUnpin for Errorwhere
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
*const ErrorImpl is !null: UnsafeUnpin,
PhantomData<ErrorImpl>: UnsafeUnpin,
*const Inner is !null: UnsafeUnpin,
PhantomData<Inner>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroU16Inner: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const dyn Any + Send is !null: UnsafeUnpin,
PhantomData<dyn Any + Send>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const dyn Error + Send + Sync is !null: UnsafeUnpin,
PhantomData<dyn Error + Send + Sync>: UnsafeUnpin,
PhantomData<DownloadFailure>: UnsafeUnpin,
PhantomData<TaskId>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const Error is !null: UnsafeUnpin,
PhantomData<Error>: UnsafeUnpin,
*const ProcessorFailure is !null: UnsafeUnpin,
PhantomData<ProcessorFailure>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
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