feat(execution-engine)!: make StreamDontHaveSuchGeneration uncatchable… (#492)

`StreamDontHaveSuchGeneration` is a catchable error that could be caught by a xor instruction and then handled by a user. But it makes no sense because this error could arise only iff smth went wrong during merging or when data is corrupted.
This commit is contained in:
Mike Voronov
2023-03-02 22:22:13 +03:00
committed by GitHub
parent 4a35dbffb7
commit 95b2d154ff
5 changed files with 47 additions and 32 deletions

View File

@ -16,7 +16,6 @@
use super::Joinable;
use super::LastErrorAffectable;
use super::Stream;
use crate::execution_step::execution_context::LastErrorObjectError;
use crate::execution_step::lambda_applier::LambdaError;
use crate::JValue;
@ -75,10 +74,6 @@ pub enum CatchableError {
#[error(transparent)]
LambdaApplierError(#[from] LambdaError),
/// Errors occurred while insertion of a value inside stream that doesn't have corresponding generation.
#[error("stream {0:?} doesn't have generation with number {1}, probably a supplied to the interpreter data is corrupted")]
StreamDontHaveSuchGeneration(Stream, usize),
/// This error type is produced by a fail instruction that tries to throw a scalar that have inappropriate type.
#[error(transparent)]
InvalidLastErrorObjectError(#[from] LastErrorObjectError),