LoggingErrNotifier<T> class abstract

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.

Inheritance
Annotations
  • @sealed

Constructors

LoggingErrNotifier()

Properties

hasError bool
Whether or not there was an error. true is returned if lastError is not equal to the default value.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
lastError → T?
The latest error value that was notified most recently.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

log(Object exception, [StackTrace? stack, Object? context]) → void
Calls all the registered listeners with error information, but without the error value unlike in set().
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(T error, [Object? exception, StackTrace? stack, Object? context]) → void
Sets error to lastError, and then calls all the registered listeners with the error passed in, along with related information if provided.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited