pub enum BytecodeLoaderError {
InvalidSectionType(u32),
InvalidSectionLength(SectionType, u32),
StringIndexOutOfBounds(usize, usize),
NoPreviousInstruction,
UnreachableBlock(Gs2BytecodeAddress),
GraalIo(GraalIoError),
OpcodeError(OpcodeError),
InvalidOperand(OperandError),
}
Expand description
Error type for bytecode operations.
Variants§
InvalidSectionType(u32)
Error for when an invalid section type is encountered.
InvalidSectionLength(SectionType, u32)
Error for when an invalid section length is encountered.
StringIndexOutOfBounds(usize, usize)
Error when string index is out of bounds.
NoPreviousInstruction
Error for when there is no previous instruction when setting an operand.
UnreachableBlock(Gs2BytecodeAddress)
Unreachable block error.
GraalIo(GraalIoError)
Error for when an I/O error occurs.
OpcodeError(OpcodeError)
Error for when an invalid opcode is encountered.
InvalidOperand(OperandError)
Error for when an invalid operand is encountered.
Trait Implementations§
Source§impl Debug for BytecodeLoaderError
impl Debug for BytecodeLoaderError
Source§impl Display for BytecodeLoaderError
impl Display for BytecodeLoaderError
Source§impl Error for BytecodeLoaderError
impl Error for BytecodeLoaderError
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()
Source§impl From<BytecodeLoaderError> for ModuleError
impl From<BytecodeLoaderError> for ModuleError
Source§fn from(source: BytecodeLoaderError) -> Self
fn from(source: BytecodeLoaderError) -> Self
Converts to this type from the input type.
Source§impl From<GraalIoError> for BytecodeLoaderError
impl From<GraalIoError> for BytecodeLoaderError
Source§fn from(source: GraalIoError) -> Self
fn from(source: GraalIoError) -> Self
Converts to this type from the input type.
Source§impl From<OpcodeError> for BytecodeLoaderError
impl From<OpcodeError> for BytecodeLoaderError
Source§fn from(source: OpcodeError) -> Self
fn from(source: OpcodeError) -> Self
Converts to this type from the input type.
Source§impl From<OperandError> for BytecodeLoaderError
impl From<OperandError> for BytecodeLoaderError
Source§fn from(source: OperandError) -> Self
fn from(source: OperandError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BytecodeLoaderError
impl !RefUnwindSafe for BytecodeLoaderError
impl Send for BytecodeLoaderError
impl Sync for BytecodeLoaderError
impl Unpin for BytecodeLoaderError
impl !UnwindSafe for BytecodeLoaderError
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