rdom 0.2.0

A Rust-based simulated DOM (browser-independent replacement for web_sys)
Documentation
//! Errors that may occur while using rdom.

use thiserror::Error as ThisError;

/// A static rendering DOM exception
#[derive(Debug, ThisError)]
pub enum DomError {
    /// Received an invalid query selector. Static rendering only supports
    /// "body" and "html".
    #[error("invalid query selector")]
    InvalidQuerySelector,

    /// The object being operated on was created in a sandbox that has since
    /// disappeared.
    #[error("the sandbox was dropped")]
    SandboxDropped,

    /// The object being operated on is out of memory. This does not mean the
    /// sandbox as a whole is out of memory.
    #[error("object out of memory")]
    ObjectOutOfMemory,
}