mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-19 14:13:06 +00:00
26 lines
519 B
Rust
26 lines
519 B
Rust
use ethereum_types::U256;
|
|
|
|
#[allow(dead_code)]
|
|
#[derive(Debug)]
|
|
pub enum ProgramError {
|
|
OutOfGas,
|
|
InvalidOpcode,
|
|
StackUnderflow,
|
|
InvalidJumpDestination,
|
|
InvalidJumpiDestination,
|
|
StackOverflow,
|
|
KernelPanic,
|
|
MemoryError(MemoryError),
|
|
GasLimitError,
|
|
InterpreterError,
|
|
IntegerTooLarge,
|
|
}
|
|
|
|
#[allow(clippy::enum_variant_names)]
|
|
#[derive(Debug)]
|
|
pub enum MemoryError {
|
|
ContextTooLarge { context: U256 },
|
|
SegmentTooLarge { segment: U256 },
|
|
VirtTooLarge { virt: U256 },
|
|
}
|