Enum rs3cache_backend::error::CacheError
source · pub enum CacheError {
CannotOpen {
source: Error,
file: PathBuf,
input: CachePath,
location: &'static Location<'static>,
},
Decode {
source: DecodeError,
location: &'static Location<'static>,
},
Io {
source: Error,
path: PathBuf,
location: &'static Location<'static>,
},
JsonEncode {
source: Error,
file: PathBuf,
location: &'static Location<'static>,
},
Decompression {
msg: String,
location: &'static Location<'static>,
},
Read {
source: ReadError,
location: &'static Location<'static>,
what: &'static str,
},
Integrity {
source: IntegrityError,
location: &'static Location<'static>,
},
Xtea {
i: u8,
j: u8,
},
XteaLoad {
source: Error,
path: PathBuf,
location: &'static Location<'static>,
},
}
Expand description
An error type for things that can go wrong when reading from the cache.
Variants§
Trait Implementations§
source§impl Debug for CacheError
impl Debug for CacheError
source§impl Display for CacheError
impl Display for CacheError
source§impl Error for CacheError
impl Error for CacheError
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
source§fn provide<'a>(&'a self, demand: &mut Demand<'a>)
fn provide<'a>(&'a self, demand: &mut Demand<'a>)
🔬This is a nightly-only experimental API. (
error_generic_member_access
)Provides type based access to context intended for error reports. 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<&CacheError> for PyErr
impl From<&CacheError> for PyErr
source§fn from(err: &CacheError) -> PyErr
fn from(err: &CacheError) -> PyErr
Converts to this type from the input type.
source§impl From<CacheError> for PyErr
impl From<CacheError> for PyErr
source§fn from(err: CacheError) -> PyErr
fn from(err: CacheError) -> PyErr
Converts to this type from the input type.