Module dotfiles_core::error
source · Expand description
Module for the error handling classes and enums.
Structs§
- Struct that represents an error that happened while parsing or executing actions.
Enums§
- A collection of types of errors that may occur while parsing or executing actions
Functions§
- Adds a prefix to an error with the name of the directive where it happened
- Creates an ErrorType::ExecutionError
- Executes the
process_function
on each of the items in theiterable
, and folds them using thefold_function
. Returns the processed and folded items if all the processing and folding was successful, otherwise returns the first error found. - Executes the
process_function
on each of the items in theiterable
, and then returnsOk(())
. It stops execution if any of the process functions returns an Error, and returns said error.