pub enum DeclarativeError {
UnsupportedVersion {
config: u32,
supported: u32,
},
HashMismatch {
expected: String,
actual: String,
},
StepNotFound(String),
GroupNotFound {
step: String,
group: String,
},
PluginNotFound {
step: String,
group: String,
plugin: String,
},
ValidationFailed {
step: String,
group: String,
message: String,
},
}Expand description
Error from applying a declarative config.
Variants§
UnsupportedVersion
Config schema version is newer than this library supports.
HashMismatch
The installer XML hash doesn’t match. The installer has been updated.
StepNotFound(String)
Referenced step name not found in the FOMOD config.
GroupNotFound
Referenced group name not found within the given step.
PluginNotFound
Referenced plugin name not found within the given group.
ValidationFailed
Selection violates the group’s constraints.
Trait Implementations§
Source§impl Clone for DeclarativeError
impl Clone for DeclarativeError
Source§fn clone(&self) -> DeclarativeError
fn clone(&self) -> DeclarativeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeclarativeError
impl Debug for DeclarativeError
Source§impl Display for DeclarativeError
impl Display for DeclarativeError
Source§impl Error for DeclarativeError
impl Error for DeclarativeError
1.30.0 · 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()
Source§impl From<DeclarativeError> for FomodError
impl From<DeclarativeError> for FomodError
Source§fn from(source: DeclarativeError) -> FomodError
fn from(source: DeclarativeError) -> FomodError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeclarativeError
impl RefUnwindSafe for DeclarativeError
impl Send for DeclarativeError
impl Sync for DeclarativeError
impl Unpin for DeclarativeError
impl UnsafeUnpin for DeclarativeError
impl UnwindSafe for DeclarativeError
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