pub enum FerroBabeError {
InputTooShort {
required: usize,
actual: usize,
},
InvalidMagic {
found: u32,
},
UnsupportedVersion {
major: u16,
minor: u16,
},
InputRead {
source: Error,
},
Decode {
source: ClassReadError,
},
Format {
source: Error,
},
IncompleteDisassembly,
}Expand description
Errors that prevent FerroBabe from returning the requested result.
Variants§
InputTooShort
The byte sequence ended before the eight-byte class-file header was available.
Fields
InvalidMagic
The input header did not contain the Java class-file magic value.
UnsupportedVersion
The class-file major version is outside FerroBabe’s supported range.
Fields
InputRead
Reading from a caller-provided std::io::Read source failed.
Decode
The underlying class-file decoder rejected the input.
Fields
§
source: ClassReadErrorUnderlying decoder error.
Format
A formatter could not write to its std::fmt::Write destination.
IncompleteDisassembly
Text output was requested for a partial result that has no complete class model.
Trait Implementations§
Source§impl Debug for FerroBabeError
impl Debug for FerroBabeError
Source§impl Display for FerroBabeError
impl Display for FerroBabeError
Source§impl Error for FerroBabeError
impl Error for FerroBabeError
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 !RefUnwindSafe for FerroBabeError
impl !UnwindSafe for FerroBabeError
impl Freeze for FerroBabeError
impl Send for FerroBabeError
impl Sync for FerroBabeError
impl Unpin for FerroBabeError
impl UnsafeUnpin for FerroBabeError
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