Expand description
Module for the error handling classes and enums.
Structs§
- Dotfiles
Error - Struct that represents an error that happened while parsing or executing actions.
Enums§
- Error
Type - A collection of types of errors that may occur while parsing or executing actions
Functions§
- add_
directive_ error_ prefix - Adds a prefix to an error with the name of the directive where it happened
- execution_
error - Creates an ErrorType::ExecutionError
- fold_
until_ first_ err - 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. - process_
until_ first_ err - 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.