dioxus/packages/rsx_interpreter/src/error.rs
2022-06-11 20:06:50 -05:00

16 lines
389 B
Rust

use serde::{Deserialize, Serialize};
/// An error produced when interperting the rsx
#[derive(Debug)]
pub enum Error {
ParseError(syn::Error),
RecompileRequiredError(RecompileReason),
}
#[derive(Debug, Serialize, Deserialize)]
pub enum RecompileReason {
CapturedVariable(String),
CapturedExpression(String),
CapturedComponent(String),
CapturedListener(String),
}