Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a unified way to show user-facing error messages on the fro… #222

Closed
wants to merge 1 commit into from

Conversation

nitinawari
Copy link
Collaborator

@nitinawari nitinawari commented Dec 20, 2024

fixed #190
Centralized Error Management

  • Single source of truth for error handling
  • Consistent error format across application
  • User-friendly messages pre-defined for each error type

Contextual Error Handling

  • Groups errors by domain (search, network, auth)
    - auth is extra maybe needed in future
  • Custom handling based on error source
  • Appropriate actions mapped to error types

User Experience Focus

  • Clear, non-technical error messages
  • Standardized error display format
  • Action-oriented error responses (retry/home)

Developer Features

  • Sentry error tracking
  • Retry mechanism with max attempts
  • Extensible error configuration system

Error will look like this for user
image
error1

Test cases
image

@nitinawari
Copy link
Collaborator Author

nitinawari commented Dec 20, 2024

@kasya , @arkid15r sir , Please let me know if any changes are needed or if I missed something. I am ready to re-implement or correct it as required

@nitinawari nitinawari marked this pull request as draft December 23, 2024 06:32
@nitinawari nitinawari marked this pull request as ready for review December 26, 2024 11:01
@nitinawari nitinawari closed this Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce a unified way to show user facing error messages on the FE
1 participant