pub enum ParserError {
Generic(String),
IO {
context: String,
source: Error,
},
Parse(String),
Component(String),
MissingAdoptedStylesheets {
tag: String,
},
Css(String),
Html(String),
Directive(String),
NotFound(String),
TsParseError(String),
}Expand description
Error type for WebUI parser.
Variants§
Generic(String)
Generic error.
IO
I/O error with context.
Parse(String)
Parse error.
Component(String)
Component error.
MissingAdoptedStylesheets
A component supplied its own <template> wrapper under
CssStrategy::Module but did not declare a
shadowrootadoptedstylesheets attribute. The framework cannot
silently inject the attribute without overriding developer intent
on the wrapper, so authoring help is surfaced at build time.
Css(String)
CSS error.
Html(String)
HTML error.
Directive(String)
Directive error.
NotFound(String)
Entity not found error.
TsParseError(String)
TypeScript parse error.
Trait Implementations§
Source§impl Debug for ParserError
impl Debug for ParserError
Source§impl Display for ParserError
impl Display for ParserError
Source§impl Error for ParserError
impl Error for ParserError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for ParserError
impl !UnwindSafe for ParserError
impl Freeze for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnsafeUnpin for ParserError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more