pub enum WebUIError {
Io {
context: String,
source: Error,
},
ComponentRegistration(String),
ComponentDiscovery(String),
Parse {
context: String,
source: ParserError,
},
Protocol(ProtocolError),
Serialization(String),
Rendering(HandlerError),
InvalidBuildOptions(String),
}Expand description
Errors that can occur during WebUI build, render, or inspection operations.
Variants§
Io
I/O error (file read/write failures).
ComponentRegistration(String)
Component registration failure.
ComponentDiscovery(String)
Component discovery failure (npm packages or local paths).
Parse
HTML/CSS parsing failure with context about which file failed.
Protocol(ProtocolError)
Protocol serialization or deserialization failure.
Serialization(String)
JSON serialization failure.
Rendering(HandlerError)
Handler rendering error.
InvalidBuildOptions(String)
Invalid build-option configuration.
Implementations§
Source§impl WebUIError
impl WebUIError
Sourcepub fn chain_message(&self) -> String
pub fn chain_message(&self) -> String
The full, single-line message including the source chain, e.g.
Failed to parse index.html: Directive error: Invalid for each: x.
Each error layer’s std::fmt::Display describes only its own level
(the #[source] chain carries the rest), so the CLI and dev server can
use anyhow’s {:#} formatting without repetition. Hosts that surface a
flat string instead of walking the chain — Node, FFI — use this helper
to get the same complete message.
Trait Implementations§
Source§impl Debug for WebUIError
impl Debug for WebUIError
Source§impl Display for WebUIError
impl Display for WebUIError
Source§impl Error for WebUIError
impl Error for WebUIError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()