ErrorObserver<St> class abstract

The observe method of the ErrorObserver will be given all errors. It's called after the action's ReduxAction.wrapError and the GlobalWrapError have both been called.

The observe method should return true to throw the error, and false to swallow it.

Note: The ErrorObserver will be given all errors, including those of type UserException and AbortDispatchException. To maintain the default behavior, you should return false (swallow) for both these error types.

Important: Don't use the store you get in the observe method to dispatch any actions, as this may have unpredictable results. Also, make sure your errorObserver never throws an error.

Implementers

Constructors

ErrorObserver()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe(Object error, StackTrace stackTrace, ReduxAction<St> action, Store<St> store) bool
The observe method of the ErrorObserver will be given all errors. It's called after the action's ReduxAction.wrapError and the GlobalWrapError have both been called.
toString() String
A string representation of this object.
inherited

Operators

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