AppException class sealed
Base type for every exception this package defines.
Sealed so consumers can catch the whole family with on AppException and
switch over it exhaustively. Previously the three exception classes were
unrelated, so there was no way to handle "an error from bloc_small" as a
group.
toString renders message. Without it, the pattern this package's own
docs recommend — emit(state.copyWith(error: e.toString())) — showed
end users Instance of 'NetworkException'.
- Implemented types
- Implementers
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited