wasmerio/wasmer · error

from_vm_exceptionref is only implemented for the sys backend

Error message

from_vm_exceptionref is only implemented for the sys backend

What it means

Error "from_vm_exceptionref is only implemented for the sys backend" thrown in wasmerio/wasmer.

Source

Thrown at lib/api/src/entities/exception/inner.rs:88

    /// Get the `VMExceptionRef` corresponding to this `Exception`.
    #[inline]
    pub fn vm_exceptionref(&self) -> VMExceptionRef {
        match self {
            #[cfg(feature = "sys")]
            Self::Sys(s) => VMExceptionRef::Sys(s.exnref()),
            _ => unimplemented!("vm_exceptionref is only implemented for the sys backend"),
        }
    }

    /// Creates a new `Exception` from a `VMExceptionRef`.
    #[inline]
    pub fn from_vm_exceptionref(exnref: VMExceptionRef) -> Self {
        match exnref {
            #[cfg(feature = "sys")]
            VMExceptionRef::Sys(s) => {
                Self::Sys(crate::backend::sys::exception::Exception::from_exnref(s))
            }
            _ => unimplemented!("from_vm_exceptionref is only implemented for the sys backend"),
        }
    }
}

View on GitHub (pinned to 8c4b9ee9d3)

When it happens

Trigger: Thrown at lib/api/src/entities/exception/inner.rs:88 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of wasmerio/wasmer@8c4b9ee9d3 (2026-09-01). Data as JSON: /api/errors/c6373451be8bd370. Report an issue: GitHub.