pub enum McDataError {
InvalidVersion(String),
VersionNotFound {
mc_version: String,
major_version: String,
edition: Edition,
},
DataPathNotFound {
mc_version: String,
edition: Edition,
data_key: String,
},
DataFileNotFound {
data_key: String,
path: PathBuf,
},
IoError {
path: PathBuf,
source: Error,
},
JsonParseError {
path: PathBuf,
source: Error,
},
CacheDirNotFound,
DownloadError(String),
ArchiveError(String),
DownloadVerificationFailed(PathBuf),
Internal(String),
CachedError(String),
}
Expand description
Represents errors that can occur within the mcdata-rs library.
Variants§
InvalidVersion(String)
VersionNotFound
DataPathNotFound
DataFileNotFound
IoError
JsonParseError
CacheDirNotFound
DownloadError(String)
ArchiveError(String)
DownloadVerificationFailed(PathBuf)
Internal(String)
CachedError(String)
Trait Implementations§
Source§impl Debug for McDataError
impl Debug for McDataError
Source§impl Display for McDataError
impl Display for McDataError
Source§impl Error for McDataError
impl Error for McDataError
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()
Auto Trait Implementations§
impl Freeze for McDataError
impl !RefUnwindSafe for McDataError
impl Send for McDataError
impl Sync for McDataError
impl Unpin for McDataError
impl !UnwindSafe for McDataError
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