Enum cobble_core::error::CobbleError
source · pub enum CobbleError {
InvalidVersion(String),
NotInstalled,
Installation(InstallationError),
Launch(LaunchError),
Io(Error),
Serde(Error),
DownloadMetadata(Error),
TokioJoinError(JoinError),
Zip(ZipError),
NbtSerde(Error),
Base64Decode(DecodeError),
MissingMarkerFile,
}
Expand description
A general error that can occur when working with this crate.
Variants§
InvalidVersion(String)
Minecraft version of the instance does not exist.
NotInstalled
Instance will not be launched, because it is not marked as installed.
Installation(InstallationError)
Error while installing.
Launch(LaunchError)
Error while launching.
Io(Error)
IO error.
Serde(Error)
Serialization/Deserialization error while working with JSON.
DownloadMetadata(Error)
Error while downloading.
TokioJoinError(JoinError)
Error while waiting for blocking code to finish.
Zip(ZipError)
Available on crate features
log-files
or resourcepacks
or loader-mods
only.Error while working with archives.
NbtSerde(Error)
Available on crate feature
internal-nbt
only.Error while deserializing/serializing an NBT file
Base64Decode(DecodeError)
Available on crate feature
internal-base64
only.Error while decoding a base64 string.
MissingMarkerFile
Available on crate feature
save-games
only.Import archive is missing a marker file
Trait Implementations§
source§impl Debug for CobbleError
impl Debug for CobbleError
source§impl Display for CobbleError
impl Display for CobbleError
source§impl Error for CobbleError
impl Error for CobbleError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError> for CobbleError
impl From<DecodeError> for CobbleError
source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for CobbleError
impl From<Error> for CobbleError
source§impl From<Error> for CobbleError
impl From<Error> for CobbleError
source§impl From<Error> for CobbleError
impl From<Error> for CobbleError
source§impl From<Error> for CobbleError
impl From<Error> for CobbleError
source§impl From<InstallationError> for CobbleError
impl From<InstallationError> for CobbleError
source§fn from(err: InstallationError) -> Self
fn from(err: InstallationError) -> Self
Converts to this type from the input type.
source§impl From<JoinError> for CobbleError
impl From<JoinError> for CobbleError
source§impl From<LaunchError> for CobbleError
impl From<LaunchError> for CobbleError
source§fn from(err: LaunchError) -> Self
fn from(err: LaunchError) -> Self
Converts to this type from the input type.