pub enum Error {
IO(Error),
InvalidUTF8,
LimitExceeded,
NotAClass,
InvalidCPItem(u16),
CPTooLarge,
InvalidInstruction {
op_code: u8,
at: u32,
},
ReservedStackMapFrame(u8),
InvalidVerificationType(u8),
InvalidElementValue(u8),
InvalidTargetType,
InvalidTypePath,
}
Variants§
IO(Error)
Just an I/O error
InvalidUTF8
A modified utf-8 string could not be read
LimitExceeded
Decoder has come to the end of the file or the limit was exceeded
NotAClass
Not a class file, the header does not equal 0xCAFEBABE
InvalidCPItem(u16)
Invalid constant pool entry
CPTooLarge
The constant pool cannot be larger than u16::max_value()
InvalidInstruction
Invalid instruction, (e.g. unknown op code)
ReservedStackMapFrame(u8)
Reserved (invalid) stack map frame
InvalidVerificationType(u8)
Invalid verification type in stack map table
InvalidElementValue(u8)
Invalid element value of annotation, where the u8 is the tag
InvalidTargetType
Invalid target type of annotation
InvalidTypePath
Invalid type path element kind of annotation
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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§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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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