pub enum CobbleError {
Show 15 variants ChecksumMismatch, InvalidChecksum(FromHexError), InvalidVersion(String), IO(Error), LibraryNameFormat, ProcessForking, IpcError(IpcError), Profile(ProfileError), Reqwest(Error), Serde(Error), Zip(ZipError), NbtIoError(NbtIoError), NbtReprError(NbtReprError), InvalidNbtValue, Base64Decode(DecodeError),
}
Expand description

An error indicating various failures during operations with instances or minecraft directly.

Variants

ChecksumMismatch

Problem while comparing checksums of files. Occurs mostly when downloading resources.

InvalidChecksum(FromHexError)

A checksum that is provided from an index has an invalid format. Versiondata and the Assetindex provide checksums for resources.

InvalidVersion(String)

A provided version could not be found in the version manifest. Version Manifest

IO(Error)

Standard IO Error. Occurs mostly when downloading resources and when authenticating. Can also occur when creating IPC channel for manually stopping the game process.

LibraryNameFormat

Problem occured while parsing minecraft library name. Format: <package>:<name>:<version>

ProcessForking

Forking the game process on linux systems failed.

IpcError(IpcError)

Sending or receiving through IPC channel failed.

Profile(ProfileError)

Failed to authenticate while creating a Profile.

Reqwest(Error)

Problem while performing a web request. Web requests are used to get game information and resources.

Serde(Error)

Serializing or deserializing of some data failed.

Zip(ZipError)

Extracting minecraft native libraries failed.

NbtIoError(NbtIoError)

Available on crate features saves or servers only.

Reading a NBT file failed.

NbtReprError(NbtReprError)

Available on crate features saves or servers only.

Translation of a NBT tag failed.

InvalidNbtValue

Available on crate features saves or servers only.

A NBT tag has an invalid value.

Base64Decode(DecodeError)

Available on crate feature servers only.

Decoding of a base64 string failed.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

🔬 This is a nightly-only experimental API. (error_generic_member_access)

Provides type based access to context intended for error reports. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

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

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

Calls U::from(self).

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

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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