mirror of
https://github.com/fluencelabs/aquavm
synced 2025-06-25 20:51:32 +00:00
Introduce new for non iterable scalars (#248)
This commit is contained in:
@ -82,6 +82,11 @@ pub enum CatchableError {
|
||||
/// This error type is produced by a fail instruction that tries to throw a scalar that have inappropriate type.
|
||||
#[error(transparent)]
|
||||
InvalidLastErrorObjectError(#[from] LastErrorObjectError),
|
||||
|
||||
/// A new with this variable name was met and right after that it was accessed
|
||||
/// that is prohibited.
|
||||
#[error("variable with name '{0}' was cleared by new and then wasn't set")]
|
||||
VariableWasNotInitializedAfterNew(String),
|
||||
}
|
||||
|
||||
impl From<LambdaError> for Rc<CatchableError> {
|
||||
|
Reference in New Issue
Block a user