use std::any::Any;
use wasmer_types::{TagType, Type};
use crate::{
AsStoreMut, AsStoreRef, Tag, Value,
wasmi::vm::{VMException, VMExceptionRef},
};
use super::store::StoreHandle;
#[derive(Debug, Clone, PartialEq, Eq)]
pub(crate) struct Exception {
pub(crate) handle: VMException,
}
unsafe impl Send for Exception {}
unsafe impl Sync for Exception {}
impl Exception {
pub fn new(store: &mut impl AsStoreMut, tag: Tag, payload: &[Value]) -> Self {
unimplemented!("Exception handling is not yet supported in wasmi");
}
}