Skip to main content

Module error

Module error 

Source
Expand description

WASM Error Handling Module

This module provides secure, consistent error handling for WASM bindings. It ensures all WASM functions return Result<T, JsValue> consistently and provides secure error conversion without information leakage.

Functionsยง

convert_result
Helper function to convert Result<T, Error> to Result<T, JsValue>
error_to_js_value
Convert Error to JsValue for WASM compatibility
parse_algorithm_wasm
WASM-safe algorithm parsing that returns JsValue errors
secure_deserialize
Secure WASM deserialization helper
secure_serialize
Secure WASM serialization helper