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

Salary info hw #1396

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

vooloshkaaa
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a 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.

Comment on lines +32 to +34
} catch (Exception e) {
builder.append("Error processing record: ").append(record).append("\r\n");
}

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.

Comment on lines +38 to +40
} catch (Exception e) {
builder.append("Error: ").append(e.getMessage()).append("\r\n");
}

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.

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.

2 participants