refactoring

This commit is contained in:
dahoud
2026-03-31 09:14:47 +00:00
parent 9bfffeeebe
commit 5383df6dcb
200 changed files with 11192 additions and 7063 deletions

View File

@@ -33,6 +33,7 @@ class FinanceRepository {
epargneBalance: epargneBalance,
);
} on DioException catch (e, st) {
if (e.type == DioExceptionType.cancel) rethrow;
AppLogger.error('FinanceRepository: getFinancialSummary échoué', error: e, stackTrace: st);
rethrow;
} catch (e, st) {
@@ -50,6 +51,7 @@ class FinanceRepository {
.map((json) => _transactionFromJson(json as Map<String, dynamic>))
.toList();
} on DioException catch (e, st) {
if (e.type == DioExceptionType.cancel) rethrow;
AppLogger.error('FinanceRepository: getTransactions échoué', error: e, stackTrace: st);
if (e.response?.statusCode == 404) return [];
rethrow;