1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#[cfg(feature = "std")]
use thiserror::Error;
#[cfg(all(not(feature = "std"), feature = "alloc"))]
use thiserror_no_std::Error;
use super::memory_errors::MemoryError;
use super::vm_exception::VmException;
use crate::types::errors::program_errors::ProgramError;
use crate::vm::errors::{
runner_errors::RunnerError, trace_errors::TraceError, vm_errors::VirtualMachineError,
};
#[derive(Debug, Error)]
pub enum CairoRunError {
#[error(transparent)]
Program(#[from] ProgramError),
#[error(transparent)]
VirtualMachine(#[from] VirtualMachineError),
#[error(transparent)]
Trace(#[from] TraceError),
#[error(transparent)]
Runner(#[from] RunnerError),
#[error(transparent)]
MemoryError(#[from] MemoryError),
#[error(transparent)]
VmException(#[from] VmException),
}