testing_library_dom/error.rs
1use thiserror::Error;
2use web_sys::wasm_bindgen::JsValue;
3
4#[derive(Debug, Error, PartialEq)]
5pub enum QueryError {
6 #[error("invalid configuration: {0}")]
7 Configuration(String),
8 #[error("{0:?}")]
9 JsError(JsValue),
10 #[error("{0}")]
11 Element(String),
12 #[error("{0}")]
13 Unsupported(String),
14}