ExceptionFormatter mixin
- Mixin applications
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
-
formatErrorMessage(
dynamic error, String defaultErrorMessage) → ApiError - Normalises an arbitrary throwable into an ApiError.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
errorToObject
→ Map<
String, Exception> -
Sample throwables keyed by type name, used by the package's tests to
exercise every branch of formatErrorMessage.
no setter
Constants
- formatError → const int
- networkError → const int