pub enum CheckError {
UnknownAttribute {
attr: String,
widget: String,
file: PathBuf,
line: u32,
col: u32,
suggestion: String,
},
MissingRequiredAttribute {
attr: String,
widget: String,
file: PathBuf,
line: u32,
col: u32,
},
UnknownHandler {
handler: String,
file: PathBuf,
line: u32,
col: u32,
suggestion: String,
},
InvalidBindingField {
field: String,
file: PathBuf,
line: u32,
col: u32,
available: String,
},
DuplicateRadioValue {
value: String,
group: String,
file: PathBuf,
line: u32,
col: u32,
first_file: PathBuf,
first_line: u32,
first_col: u32,
},
InconsistentRadioHandlers {
group: String,
file: PathBuf,
line: u32,
col: u32,
handlers: String,
},
InvalidThemeProperty {
property: String,
theme: String,
file: PathBuf,
line: u32,
col: u32,
message: String,
valid_properties: String,
},
ThemeCircularDependency {
theme: String,
cycle: String,
},
HandlerRegistryLoadError {
path: PathBuf,
source: Error,
},
ModelInfoLoadError {
path: PathBuf,
source: Error,
},
CustomWidgetConfigLoadError {
path: PathBuf,
source: Error,
},
Io(Error),
}Expand description
Enhanced error types for the dampen check command.
Variants§
UnknownAttribute
MissingRequiredAttribute
UnknownHandler
InvalidBindingField
DuplicateRadioValue
Fields
InconsistentRadioHandlers
InvalidThemeProperty
Fields
ThemeCircularDependency
HandlerRegistryLoadError
ModelInfoLoadError
CustomWidgetConfigLoadError
Io(Error)
Trait Implementations§
Source§impl Debug for CheckError
impl Debug for CheckError
Source§impl Display for CheckError
impl Display for CheckError
Source§impl Error for CheckError
impl Error for CheckError
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 Freeze for CheckError
impl !RefUnwindSafe for CheckError
impl Send for CheckError
impl Sync for CheckError
impl Unpin for CheckError
impl !UnwindSafe for CheckError
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