pub enum DexError {
Show 13 variants
InvalidChecksumError,
DexHeaderTooShortError,
InvalidEndianessTag,
NoDataLeftError,
InvalidUleb128Value,
InvalidUleb128p1Value,
InvalidSleb128Value,
SeekError(Error),
InvalidTypeIdx,
InvalidStringIdx,
InvalidFieldIdx,
InvalidMethodIdx,
InvalidOpCode,
}Expand description
All errors that can be returned by the parser
Variants§
InvalidChecksumError
The checksum of the header does not match the one in the DEX header
DexHeaderTooShortError
The header of the file is too short to be a valid DEX header
InvalidEndianessTag
The endianness tag of the header is invalid
NoDataLeftError
The stream ended abruptly
InvalidUleb128Value
The unsigned LEB128 value has more than 5 bytes
InvalidUleb128p1Value
The signed LEB128 value has more than 5 bytes
InvalidSleb128Value
The unsigned LEB128p1 value has more than 5 bytes
SeekError(Error)
Attempted to move the cursor after the end of the stream
InvalidTypeIdx
Requested type index is not in the list of types
InvalidStringIdx
Requested string index is not in the list of strings
InvalidFieldIdx
Requested field index is not in the list of fields
InvalidMethodIdx
Requested method index is not in the list of methods
InvalidOpCode
Encountered an invalid or unused opcode
Trait Implementations§
Source§impl Error for DexError
impl Error for DexError
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 DexError
impl !RefUnwindSafe for DexError
impl Send for DexError
impl Sync for DexError
impl Unpin for DexError
impl !UnwindSafe for DexError
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