Skip to main content

Module error

Module error 

Source
Expand description

WASM-boundary error types.

WasmError aggregates errors from all lower layers. Because wasm-bindgen provides a blanket impl<E: Error> From<E> for JsError, any WasmError can be converted to JsError automatically via ?.

Enums§

WasmError
Errors that can occur in WASM-exposed operations.

Functions§

validate_finite
Validate that a f64 value is finite (not NaN or infinite).
validate_positive
Validate that a f64 value is finite and strictly positive.