Skip to main content

Error

Enum Error 

Source
#[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

Fields

§message: String
§

UnsupportedDriver

Fields

§

LoaderVersionRequired

Fields

§driver: String
§

Infra(Error)

§

Shared(Error)

§

Storage(Error)

§

Runtime(Error)

§

BlockingTask(JoinError)

§

Launcher(Error)

§

SystemTime(SystemTimeError)

§

InvalidUrl

Fields

§context: String
§source: Box<dyn StdError + Send + Sync>
§

JoinUrl

Fields

§context: String
§base_url: String
§path: String
§source: Box<dyn StdError + Send + Sync>
§

UrlNotPathBase

Fields

§

UnknownOrigin

Fields

§raw_url: String
§

OriginBasePathMismatch

Fields

§raw_url: String
§

RequestResource

Fields

§source_name: String
§source: Error
§

HttpStatus

Fields

§source_name: String
§source: Error
§

DecodeResource

Fields

§source_name: String
§source: Error
§

InvalidNotation

Fields

§label: String
§notation: String
§

MavenLibraryMissingSource

Fields

§notation: String
§

UnsupportedUrlScheme

Fields

§context: String
§

DecodeMavenMetadata

Fields

§source_label: String
§source: DeError
§

ReadVersionMetadata

Fields

§source: Box<Error>
§

MissingVersionName

Fields

§path: PathBuf
§

MissingVersionRootFileName

Fields

§path: PathBuf
§

LoggingConfigMissing

Fields

§path: PathBuf
§

ModulePathValueMissing

§

ResolveModulePath

§

VersionJarMissing

Fields

§path: PathBuf
§

VersionNotPrepared

Fields

§version: String
§status: String
§

ParseBaseMinecraftArguments

Fields

§source: Box<Error>
§

LauncherVariablesNotObject

§

InstanceNotFound

Fields

§name: String
§

MissingParentDirectory

Fields

§context: String
§path: PathBuf
§

InstallerCoordinateFileNameMissing

Fields

§notation: String
§

ReadPersistedInstallProfile

Fields

§family_name: String
§path: PathBuf
§source: Error
§

ReadPersistedEmbeddedVersion

Fields

§family_name: String
§path: PathBuf
§source: Error
§

InstallerProfileMinecraftVersionMissing

Fields

§family_name: String
§

InstallerProfileLoaderVersionMissing

Fields

§family_name: String
§loader_name: String
§

InstallerGameVersionMismatch

Fields

§family_name: String
§actual: String
§expected: String
§

InstallerLoaderVersionMismatch

Fields

§family_name: String
§actual: String
§expected: String
§

ReadEmbeddedVersionJson

Fields

§family_name: String
§path: String
§source: Box<Error>
§

DownloadInstaller

Fields

§family_name: String
§source: Error
§

ReadInstallerProfile

Fields

§family_name: String
§source: Box<Error>
§

ExtractInstallerMavenArtifacts

Fields

§family_name: String
§source: Box<Error>
§

InstallerEmbeddedVersionMissing

Fields

§family_name: String
§

DecodeEmbeddedVersion

Fields

§family_name: String
§source: Error
§

InstallerNotPrepared

Fields

§family_name: String
§instance: String
§status: String
§

MissingInstanceName

Fields

§family_name: String
§path: PathBuf
§

DownloadInstallerProfileLibraries

Fields

§family_name: String
§source: Error
§

ProcessorOutputsMissing

Fields

§family_name: String
§

UnknownProcessorVariable

Fields

§family_name: String
§

RunProcessor

Fields

§family_name: String
§processor: String
§source: Error
§

ProcessorFailed(Box<ProcessorFailure>)

§

JarMainClassMissing

Fields

§path: PathBuf
§

CurrentDirectory

Fields

§path: PathBuf
§source: Error
§

AssetHashTooShort

Fields

§hash: String
§

VanillaVersionNotFound

Fields

§game_version: String
§

RewriteUpstream

Fields

§family_name: String
§raw_url: String
§source: Box<Error>
§

LiteLoaderMinecraftVersionNotFound

Fields

§game_version: String
§

LiteLoaderLoaderVersionNotFound

Fields

§loader_version: String
§game_version: String
§

LiteLoaderLibraryRepositoryMissing

Fields

§library: String
§

LiteLoaderSnapshotRepositoryMissing

Fields

§library: String
§

RiftReleaseAssetNotFound

Fields

§asset_name: String
§

RiftReleaseTagMissingLoaderVersion

Fields

§tag_name: String
§

ReadRiftProfile

Fields

§asset_name: String
§source: Error
§

DecodeRiftProfile

Fields

§source: Error
§

RiftGameVersionMismatch

Fields

§loader_version: String
§actual: String
§requested: String
§

TrailingArgumentEscape

§

UnterminatedArgumentQuote

Fields

§quote: char

Trait Implementations§

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<DeError> for Error

Source§

fn from(source: DeError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for Error

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<JoinError> for Error

Source§

fn from(source: JoinError) -> Self

Converts to this type from the input type.
Source§

impl From<SystemTimeError> for Error

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more