feat(execution-engine)!: fail :error: now bubbles the original error up [fixes VM-342] (#714)

This commit is contained in:
raftedproc
2023-10-13 20:37:27 +03:00
committed by GitHub
parent cdde3bb263
commit 98870c2ff9
11 changed files with 146 additions and 23 deletions

View File

@ -32,7 +32,7 @@ use std::rc::Rc;
/// Catchable errors arisen during AIR script execution. Catchable here means that these errors
/// could be handled by a xor instruction and their error_code could be used in a match
/// instruction.
#[derive(ThisError, EnumDiscriminants, Debug)]
#[derive(ThisError, EnumDiscriminants, Debug, Clone)]
#[strum_discriminants(derive(EnumIter))]
pub enum CatchableError {
/// An error is occurred while calling local service via call_service.