Enum jbcrs_basic::Error [] [src]

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

Just an I/O error

A modified utf-8 string could not be read

Decoder has come to the end of the file or the limit was exceeded

Not a class file, the header does not equal 0xCAFEBABE

Invalid constant pool entry

The constant pool cannot be larger than u16::max_value()

Invalid instruction, (e.g. unknown op code)

Fields of InvalidInstruction

Reserved (invalid) stack map frame

Invalid verification type in stack map table

Invalid element value of annotation, where the u8 is the tag

Invalid target type of annotation

Invalid type path element kind of annotation

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

The lower-level cause of this error, if any. Read more

[src]

A short description of the error. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error