AOSSIE-Org / AOSSIE-Org/Resonate

Add centralized error handling service

Đang mở
#722 4 bình luận 0 reaction 0 người được giao Được @TenFinges nhận Xem trên GitHub
Ngôn ngữ chính
Dart
Star
344
Fork
350
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.