Enum dotfiles_core::error::ErrorType
source · pub enum ErrorType {
ExecutionError {
popen_error: Option<PopenError>,
exit_status: Option<ExitStatus>,
},
FileSystemError {
fs_error: Error,
},
InconsistentConfigurationError,
IncompleteConfigurationError {
missing_field: String,
},
YamlParseError {
scan_error: ScanError,
},
UnexpectedYamlTypeError {
encountered: StrictYaml,
expected: StrictYaml,
},
CoreError,
TestingErrorActionSucceedsWhenItShouldFail,
}
Expand description
A collection of types of errors that may occur while parsing or executing actions
Variants§
ExecutionError
An error occurred while running a command necessary for executing an action
Fields
FileSystemError
A filesystem error that was encountered while either reading configuration or executing a filesystem related action
InconsistentConfigurationError
The configuration file is inconsistent with itself or with that dotfiles supports.
IncompleteConfigurationError
The configuration is missing a required field
YamlParseError
An error that occurred while parsing the StrictYaml file
UnexpectedYamlTypeError
Received an StrictYaml object of an unexpected type
Fields
§
encountered: StrictYaml
What we got instead of the expected type.
§
expected: StrictYaml
An example of what we expected.
CoreError
A core logic error for Dotfiles-rs
TestingErrorActionSucceedsWhenItShouldFail
An error only for testing, the action that should fail actually succeeds!
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorType
impl !RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl !UnwindSafe for ErrorType
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more