#[non_exhaustive]pub enum Error {
Show 74 variants
Io(Error),
Json(Error),
Xml(DeError),
Http(Error),
HttpClientBuild {
message: String,
},
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>,
},
UrlNotPathBase {
url: String,
},
UnknownOrigin {
raw_url: String,
},
OriginBasePathMismatch {
raw_url: String,
},
RequestResource {
source_name: String,
url: String,
source: Error,
},
HttpStatus {
source_name: String,
url: String,
source: Error,
},
DecodeResource {
source_name: String,
url: String,
source: Error,
},
InvalidNotation {
label: String,
notation: String,
},
MavenLibraryMissingSource {
notation: String,
},
UnsupportedUrlScheme {
context: String,
url: String,
},
DecodeMavenMetadata {
source_label: String,
url: String,
source: DeError,
},
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>,
},
LauncherVariablesNotObject,
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>,
},
LiteLoaderMinecraftVersionNotFound {
game_version: String,
},
LiteLoaderLoaderVersionNotFound {
loader_version: String,
game_version: String,
},
LiteLoaderLibraryRepositoryMissing {
library: String,
},
LiteLoaderSnapshotRepositoryMissing {
library: String,
},
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,
},
}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)
Xml(DeError)
Http(Error)
HttpClientBuild
UnsupportedDriver
LoaderVersionRequired
Infra(Error)
Storage(Error)
Runtime(Error)
BlockingTask(JoinError)
Launcher(Error)
SystemTime(SystemTimeError)
InvalidUrl
JoinUrl
UrlNotPathBase
UnknownOrigin
OriginBasePathMismatch
RequestResource
HttpStatus
DecodeResource
InvalidNotation
MavenLibraryMissingSource
UnsupportedUrlScheme
DecodeMavenMetadata
ReadVersionMetadata
MissingVersionName
MissingVersionRootFileName
LoggingConfigMissing
ModulePathValueMissing
ResolveModulePath
VersionJarMissing
VersionNotPrepared
ParseBaseMinecraftArguments
LauncherVariablesNotObject
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
LiteLoaderMinecraftVersionNotFound
LiteLoaderLoaderVersionNotFound
LiteLoaderLibraryRepositoryMissing
LiteLoaderSnapshotRepositoryMissing
RiftReleaseAssetNotFound
RiftReleaseTagMissingLoaderVersion
ReadRiftProfile
DecodeRiftProfile
RiftGameVersionMismatch
TrailingArgumentEscape
UnterminatedArgumentQuote
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<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 Error
impl Move for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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