-
Notifications
You must be signed in to change notification settings - Fork 139
Open
Labels
App 💻Issues/Pull Requests which update Drifty Application CodeIssues/Pull Requests which update Drifty Application CodeEddieHub:good-first-issueLabel for good-first-issue finder made by EddieHub CommunityLabel for good-first-issue finder made by EddieHub Communityfeature ✨New feature request or additionNew feature request or additiongood first issueGood for newcomersGood for newcomershelp wantedExtra attention and support, and contributors are neededExtra attention and support, and contributors are needed
Milestone
Description
It has been noted that the current implementation of GUI windows lacks comprehensive exception handling. This can lead to application instability if exceptions occur during the window's loading or initialization process.
Proposed Enhancement:
- Implement Try-Catch Blocks: Wrap calls to
.show()methods within try-catch blocks to gracefully handle exceptions. - Log and Notify: In the catch block, log the exception details and notify the user through the GUI.
Example Code:
try {
settingsWin.show();
} catch (Exception e) {
System.err.println('Failed to open settings window: ' + e.getMessage());
// Additional error handling logic here
}Optimization Suggestions:
- Centralized Exception Handling: Consider implementing a centralized exception handling mechanism to manage exceptions in a uniform way across all GUI components.
- User Feedback: Improve user experience by providing informative error messages and recovery options in the event of a failure.
This issue aims to systematically address and improve exception handling across all GUI windows to enhance application stability and user experience.
Metadata
Metadata
Assignees
Labels
App 💻Issues/Pull Requests which update Drifty Application CodeIssues/Pull Requests which update Drifty Application CodeEddieHub:good-first-issueLabel for good-first-issue finder made by EddieHub CommunityLabel for good-first-issue finder made by EddieHub Communityfeature ✨New feature request or additionNew feature request or additiongood first issueGood for newcomersGood for newcomershelp wantedExtra attention and support, and contributors are neededExtra attention and support, and contributors are needed
Projects
Status
Todo