pub enum DataBaseError {
NotFoundId {
id: u64,
},
ZeroOffset {
id: u64,
},
SpecifiedZeroOffset,
VersionMismatch {
expected: Version,
actual: Version,
},
MappingCreationFailed,
AddressLibraryNotFound {
path: PathBuf,
},
FailedUnpackFile {
source: UnpackError,
},
ModuleStateError {
source: ModuleStateError,
},
HeaderParseError {
source: HeaderError,
},
Poisoned,
MemoryMapError {
source: LockError,
},
}
Expand description
Errors that can occur during the file loading process.
Variants§
NotFoundId
Could not find this ID({id}) in AddressLibrary. Possible reasons are: wrong ID specification, This plugin is incompatible, etc.
ZeroOffset
The offset for this ID({id}) in AddressLibrary was 0. That’s an invalid offset.
SpecifiedZeroOffset
For an offset for which no ID is provided, 0 is specified, which is an invalid offset.
VersionMismatch
Version mismatch
MappingCreationFailed
Failed to create shared mapping
AddressLibraryNotFound
Failed to locate an appropriate address library.
FailedUnpackFile
Failed to unpack file at: {source}
Fields
§
source: UnpackError
ModuleStateError
Inherited module state(manager) get error.
Fields
§
source: ModuleStateError
HeaderParseError
Inherited header parsing error.
Fields
§
source: HeaderError
Poisoned
A thread that was taking database locks panicked.
MemoryMapError
Inherited memory mapping error.
Trait Implementations§
Source§impl Clone for DataBaseError
impl Clone for DataBaseError
Source§fn clone(&self) -> DataBaseError
fn clone(&self) -> DataBaseError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DataBaseError
impl Debug for DataBaseError
Source§impl Display for DataBaseError
impl Display for DataBaseError
Source§impl Error for DataBaseError
impl Error for DataBaseError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for DataBaseError
impl ErrorCompat for DataBaseError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl From<LockError> for DataBaseError
impl From<LockError> for DataBaseError
Source§impl From<ModuleStateError> for DataBaseError
impl From<ModuleStateError> for DataBaseError
Source§fn from(error: ModuleStateError) -> Self
fn from(error: ModuleStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataBaseError
impl !RefUnwindSafe for DataBaseError
impl Send for DataBaseError
impl Sync for DataBaseError
impl Unpin for DataBaseError
impl !UnwindSafe for DataBaseError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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