-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Salary info hw #1396
base: master
Are you sure you want to change the base?
Salary info hw #1396
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your hard work on this pull request! 😊 While your solution is mostly on the right track, there are a few critical issues that need to be addressed before we can proceed. Specifically, the use of generic Exception
handling can obscure underlying issues, and it's important to catch more specific exceptions like NumberFormatException
or DateTimeParseException
. This will help ensure that your code is robust and easier to debug. Once these changes are made, your code will be much stronger. Keep up the great work, and I'm confident you'll nail it with the next iteration! 🚀
✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨
🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review
button in the Reviewers tab.
} catch (Exception e) { | ||
builder.append("Error processing record: ").append(record).append("\r\n"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Catching a generic Exception
is not recommended as it can mask other issues. Consider catching more specific exceptions like NumberFormatException
or DateTimeParseException
to handle specific errors related to parsing.
} catch (Exception e) { | ||
builder.append("Error: ").append(e.getMessage()).append("\r\n"); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to the inner try-catch block, catching a generic Exception
here can mask other issues. Consider handling specific exceptions that might occur during the date parsing or processing logic.
No description provided.