IgnorableErrNotifier<T> class abstract

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.

Inheritance
Annotations
  • @sealed

Constructors

IgnorableErrNotifier()

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
Does nothing.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(T error, [Object? exception, StackTrace? stack, Object? context]) → void
Only sets error to lastError.
override
toString() String
A string representation of this object.
inherited

Operators

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