1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::vm::errors::memory_errors::MemoryError;
use thiserror::Error;

#[derive(Debug, PartialEq, Eq, Error)]
pub enum TraceError {
    #[error("Trace is not enabled for this run")]
    TraceNotEnabled,
    #[error("Trace is already relocated")]
    AlreadyRelocated,
    #[error("Trace register must be relocatable")]
    RegNotRelocatable,
    #[error("No relocation found for this segment")]
    NoRelocationFound,
    #[error(transparent)]
    MemoryError(#[from] MemoryError),
}