errflow library

Classes

CombinedResult<S, T>
A class that holds both a value and an error as a result of some computation.
ErrFlow<T>
A class that facilitates handling and logging of errors.
ErrNotifier<T>
A class that provides an error notification API.
IgnorableErrNotifier<T>
A variant of ErrNotifier used in ErrFlow.ignorableScope(). Calling set() and log().with this notifier does not trigger the error handlers, the logger, nor added listener functions.
LoggingErrNotifier<T>
A variant of ErrNotifier used in ErrFlow.loggingScope(). This notifier itself is the same as ErrNotifier, but because ErrFlow.loggingScope() has no parameters for error conditions, calling set() does not trigger the error handlers.

Typedefs

ErrListener<T> = void Function({Object? context, T? error, Object? exception, StackTrace? stack})
Signature for a listener used in ErrNotifier and other classes that extend it or hold its instance.