AOSSIE-Org / AOSSIE-Org/Resonate

Add centralized error handling service

オープン
#722 コメント 4 件 リアクション 0 件 担当者 0 名 @TenFinges が担当を希望しています GitHub で見る
主要言語
Dart
スター
344
フォーク
350
PR マージ指標
30日以内にマージされた PR はありません

説明

## Problem
Error handling is scattered across 50+ catch blocks with inconsistent patterns:
- Some catch blocks only log errors without informing users
- Some show raw exception messages to users
- Accessibility announcements are inconsistently applied

## Proposed Solution
Create a centralized [ErrorService](cci:2://file:///Users/rohan/projects/Resonate/lib/services/error_service.dart:27:0-252:1) that provides:
- Consistent user-friendly error messages
- Accessibility announcements (TalkBack/VoiceOver support)
- Typed error categorization (network, auth, storage, database, validation)
- Centralized logging

## Implementation
- Create [ErrorService](cci:2://file:///Users/rohan/projects/Resonate/lib/services/error_service.dart:27:0-252:1) class with [handle()](cci:1://file:///Users/rohan/projects/Resonate/lib/services/error_service.dart:28:2-68:3) and [handleSilently()](cci:1://file:///Users/rohan/projects/Resonate/lib/services/error_service.dart:70:2-80:3) methods
- Create [ErrorType](cci:1://file:///Users/rohan/projects/Resonate/lib/services/error_service.dart:230:2-251:3) enum for error categorization
- Add localization strings for error messages
- Update controllers to use the new service

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。