13 lines
462 B
Dart
13 lines
462 B
Dart
part of '../unit.dart';
|
|||
|
|
|
||
|
|
@freezed
|
||
|
|
sealed class UnitFailure with _$UnitFailure {
|
||
|
|
const factory UnitFailure.serverError(ApiFailure failure) = _ServerError;
|
||
|
|
const factory UnitFailure.unexpectedError() = _UnexpectedError;
|
||
|
|
const factory UnitFailure.empty() = _Empty;
|
||
|
|
const factory UnitFailure.localStorageError(String erroMessage) =
|
||
|
|
_LocalStorageError;
|
||
|
|
const factory UnitFailure.dynamicErrorMessage(String erroMessage) =
|
||
|
|
_DynamicErrorMessage;
|
||
|
|
}
|