Expand description
Strategies a caller may use to collect errors from subfunctions
Currently, the strategies contained in this module are:
-
DontCare: The caller will ignore any non-fatal errors in subfunction. WriteErrorList::push is effectively a no-op.
-
ErrorOccurred: Keeps track of a single boolean about whether an error occurred or not. WriteErrorList::push essentially just sets a flag.
-
Sublist: A full-fledged list of all non-fatal errors in subfunction. Will be mapped to the caller’s error type with a map function and pushed into the caller’s error list.
Structs§
- Dont
Care - An error list writer that ignores errors
- Error
Occurred - An error list writer that only notes that an error occurred
- Sublist
- A sublist that maps a list of errors into a parent error type