Skip to main content

euv_ui/hook/error_boundary/
enum.rs

1/// The phase of an `ErrorBoundary`.
2///
3/// - `Healthy` — no child render has thrown yet.
4///   Render the child normally.
5/// - `Caught(String)` — a child render threw; the
6///   message is for debugging. Render the fallback.
7#[derive(Clone, Debug, Default)]
8pub enum ErrorBoundaryPhase {
9    /// No child render has thrown.
10    #[default]
11    Healthy,
12    /// A child render threw; the message is for
13    /// debugging.
14    Caught(String),
15}