FileSystemFailureMapper class final

Специализированный маппер ошибок файловой системы.

Преобразует исключения файловой системы (включая dart:io через PlatformExceptions) в Failure категорий FileFailure и StorageFailure. Автоматически определяет, относится ли путь к хранилищу (SharedPreferences, documents, cache и т.д.), и маппит ошибки соответственно.

Использует PlatformExceptions для кроссплатформенной идентификации ошибок файловой системы, включая PathNotFoundException.

См. также: FailureSubMapper, PlatformFailureMapper.

Implemented types

Constructors

FileSystemFailureMapper()
const

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, если это ошибка файловой системы.
override

Operators

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