Enum solana_rbpf::error::EbpfError[][src]

pub enum EbpfError<E: UserDefinedError> {
Show 21 variants UserError(E), ElfError(ElfError), SycallAlreadyRegistered(usize), SyscallNotRegistered(usize), SyscallAlreadyBound(usize), CallDepthExceeded(usizeusize), ExitRootCallFrame, DivideByZero(usize), ExecutionOverrun(usize), CallOutsideTextSegment(usizeu64), ExceededMaxInstructions(usizeu64), JitNotCompiled, InvalidVirtualAddress(u64), InvalidMemoryRegion(usize), AccessViolation(usizeAccessTypeu64u64, &'static str), StackAccessViolation(usizeAccessTypeu64u64i64), InvalidInstruction(usize), UnsupportedInstruction(usize), ExhausedTextSegment(usize), LibcInvocationFailed(&'static strVec<String>, i32), VerifierError(VerifierError),
}
Expand description

Error definitions

Variants

UserError(E)

Tuple Fields

0: E

User defined error

ElfError(ElfError)

Tuple Fields

ELF error

SycallAlreadyRegistered(usize)

Tuple Fields

0: usize

Syscall was already registered before

SyscallNotRegistered(usize)

Tuple Fields

0: usize

Syscall was not registered before bind

SyscallAlreadyBound(usize)

Tuple Fields

0: usize

Syscall already has a bound context object

CallDepthExceeded(usizeusize)

Tuple Fields

0: usize
1: usize

Exceeded max BPF to BPF call depth

ExitRootCallFrame

Attempt to exit from root call frame

DivideByZero(usize)

Tuple Fields

0: usize

Divide by zero“

ExecutionOverrun(usize)

Tuple Fields

0: usize

Exceeded max instructions allowed

CallOutsideTextSegment(usizeu64)

Tuple Fields

0: usize
1: u64

Attempt to call to an address outside the text segment

ExceededMaxInstructions(usizeu64)

Tuple Fields

0: usize
1: u64

Exceeded max instructions allowed

JitNotCompiled

Program has not been JIT-compiled

InvalidVirtualAddress(u64)

Tuple Fields

0: u64

Invalid virtual address

InvalidMemoryRegion(usize)

Tuple Fields

0: usize

Memory region index or virtual address space is invalid

AccessViolation(usizeAccessTypeu64u64, &'static str)

Tuple Fields

0: usize
2: u64
3: u64
4: &'static str

Access violation (general)

StackAccessViolation(usizeAccessTypeu64u64i64)

Tuple Fields

0: usize
2: u64
3: u64
4: i64

Access violation (stack specific)

InvalidInstruction(usize)

Tuple Fields

0: usize

Invalid instruction

UnsupportedInstruction(usize)

Tuple Fields

0: usize

Unsupported instruction

ExhausedTextSegment(usize)

Tuple Fields

0: usize

Compilation is too big to fit

LibcInvocationFailed(&'static strVec<String>, i32)

Tuple Fields

0: &'static str
1: Vec<String>
2: i32

Libc function call returned an error

VerifierError(VerifierError)

Tuple Fields

ELF error

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.