Enum cobble_core::error::InstallationError
source · pub enum InstallationError {
Download(DownloadError),
Io(Error),
Extract(ZipError),
ParseChecksum(FromHexError),
JsonSerialize(Error),
}
Expand description
An error that occurs during installation of minecraft.
Variants§
Download(DownloadError)
Error while downloading a resource.
Io(Error)
Error while interacting with IO.
Extract(ZipError)
Error while extracting a library.
ParseChecksum(FromHexError)
Parsing the SHA1 checksum failed.
JsonSerialize(Error)
Serializing of the asset index failed
Trait Implementations§
source§impl Debug for InstallationError
impl Debug for InstallationError
source§impl Display for InstallationError
impl Display for InstallationError
source§impl Error for InstallationError
impl Error for InstallationError
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<DownloadError> for InstallationError
impl From<DownloadError> for InstallationError
source§fn from(err: DownloadError) -> Self
fn from(err: DownloadError) -> Self
Converts to this type from the input type.
source§impl From<Error> for InstallationError
impl From<Error> for InstallationError
source§impl From<Error> for InstallationError
impl From<Error> for InstallationError
source§impl From<FromHexError> for InstallationError
impl From<FromHexError> for InstallationError
source§fn from(err: FromHexError) -> Self
fn from(err: FromHexError) -> Self
Converts to this type from the input type.
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.