1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#[cfg(feature = "std")]
use thiserror::Error;
#[cfg(all(not(feature = "std"), feature = "alloc"))]
use thiserror_no_std::Error;
use crate::vm::errors::memory_errors::MemoryError;
#[derive(Debug, PartialEq, Error)]
pub enum TraceError {
#[error("Trace is not enabled for this run")]
TraceNotEnabled,
#[error("Trace is already relocated")]
AlreadyRelocated,
#[error("No relocation found for execution segment")]
NoRelocationFound,
#[error(transparent)]
MemoryError(#[from] MemoryError),
#[error("Trace not relocated")]
TraceNotRelocated,
}