#[derive(Debug)]
pub struct Error(pub wasm_bindgen::JsValue);
impl std::fmt::Display for Error {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
use std::fmt::Debug;
self.0.fmt(f)
}
}
impl std::error::Error for Error {}
impl From<wasm_bindgen::JsValue> for Error {
fn from(value: wasm_bindgen::JsValue) -> Self {
Self(value)
}
}