You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our current error handling implementation has room for improvement in providing clear and consistent error messages to the client. Enhancing this aspect will help in troubleshooting issues more effectively and improve overall user experience.
Objectives: Review and Refactor Error Handling Logic: Assess the existing error handling mechanisms to identify areas where error processing and communication can be improved. Testing and Validation: Add comprehensive tests to validate the new error handling behavior and confirm that the improvements address the current shortcomings.
Acceptance Criteria:
All error responses follow the standardized format.
The refactoring does not introduce breaking changes for existing clients.
Error messages are clear, actionable, and provide sufficient information for debugging.
Validation errors should return 4XX for client submitted data.
Tests cover a variety of error scenarios and confirm correct behavior.
Example
If an env. var. is not set, calling getOrThrow on the configuration service will thrown an unknown error that is otherwise hard to debug.
The text was updated successfully, but these errors were encountered:
Our current error handling implementation has room for improvement in providing clear and consistent error messages to the client. Enhancing this aspect will help in troubleshooting issues more effectively and improve overall user experience.
Objectives:
Review and Refactor Error Handling Logic: Assess the existing error handling mechanisms to identify areas where error processing and communication can be improved.
Testing and Validation: Add comprehensive tests to validate the new error handling behavior and confirm that the improvements address the current shortcomings.
Acceptance Criteria:
Example
If an env. var. is not set, calling
getOrThrow
on the configuration service will thrown an unknown error that is otherwise hard to debug.The text was updated successfully, but these errors were encountered: