FailureSubMapper class abstract interface

Интерфейс подмаппера ошибок, реализуемый каждым специализированным маппером.

Каждый FailureSubMapper отвечает за определённую группу ошибок (Dio, Hive, Firebase, файловая система и т.д.) и пытается преобразовать исходное исключение в Failure. Если маппер не распознаёт ошибку, возвращает null.

См. также: DioFailureMapper, HiveFailureMapper, CommonFailureMapper.

Implementers

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
toString() → String
A string representation of this object.
inherited
tryMap(Object error, [StackTrace? stackTrace]) → Failure?
Пытается преобразовать error в Failure.

Operators

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