fl_mirror
library
Classes
BadRequestFailure
Represents a failure due to bad request (e.g., 400).
CacheFailure
Represents an error related to local caching.
ConflictFailure
Represents a failure due to a conflict (e.g., 409).
DeviceFailure
Represents a failure related to the device or hardware.
ExpectedFailure
Represents a failure that is expected and not an actual error (e.g., empty state).
Failure
Abstract base class for all failure types.
ForbiddenFailure
Represents a forbidden access failure (e.g., 403).
FormatFailure
Represents an error in data formatting (e.g., invalid JSON).
LocalFailure
Represents a local (device-side) error such as file I/O or DB read/write.
Mirror <T >
A generic result container that holds either a success value of type T
or an error.
Mirrorable
A base class that provides value equality based on the fields
listed in props . Extend this in your data classes to
get ==
and hashCode
implementations automatically.
MirrorFailure <T >
Represents a failure result containing an error.
MirrorSuccess <T >
Represents a successful result containing a value of type T
.
NetworkFailure
Represents a network connection failure.
NotFoundFailure
Represents a failure when a resource is not found (e.g., 404).
PaymentFailure
Represents a failure during a payment process.
PermissionFailure
Represents a failure due to missing or denied app permissions.
ServerFailure
Represents a failure that occurred on the server or backend.
TimeoutFailure
Represents a timeout from server or network.
UnauthorizedFailure
Represents an unauthorized access failure (e.g., 401).
UnknownFailure
Represents a generic unknown error not categorized elsewhere.
ValidationFailure
Represents invalid user input or failed validation.