Source code for polywrap_wasm.errors

"""This module contains the error classes used by polywrap-wasm package."""
from polywrap_core import WrapError


[docs]class WasmError(WrapError): """Base class for all exceptions related to wasm wrappers."""
[docs]class WasmExportNotFoundError(WasmError): """Raises when an export isn't found in the wasm module."""
[docs]class WasmMemoryError(WasmError): """Raises when the Wasm memory is not found."""
__all__ = [ "WasmError", "WasmExportNotFoundError", "WasmMemoryError", ]