Enum jbcrs::Error
[−]
[src]
pub enum Error { IO(Error), InvalidUTF8, LimitExceeded, NotAClass, InvalidCPItem(u16), CPTooLarge, InvalidDescriptor { desc: String, at: usize, }, 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()
InvalidDescriptor
Not a valid descriptor
Fields of InvalidDescriptor
desc: String | |
at: usize |
InvalidInstruction
Invalid instruction, (e.g. unknown op code)
Fields of InvalidInstruction
op_code: u8 | |
at: u32 |
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
impl Debug for Error
[src]
impl Display for Error
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more