enaklo-flutter/lib/domain/game/failures/game_failure.dart

10 lines
322 B
Dart
Raw Normal View History

2025-09-18 10:39:54 +07:00
part of '../game.dart';
@freezed
sealed class GameFailure with _$GameFailure {
const factory GameFailure.serverError(ApiFailure failure) = _ServerError;
const factory GameFailure.unexpectedError() = _UnexpectedError;
const factory GameFailure.dynamicErrorMessage(String erroMessage) =
_DynamicErrorMessage;
}