Skip to content

Sheffield | 26-Java-June | Hassan Osman | Sprint 4 | Prep: Data Exceptions - #69

Open
HassanOHOsman wants to merge 19 commits into
CodeYourFuture:mainfrom
HassanOHOsman:prep/exceptions-exercises
Open

HassanOHOsman wants to merge 19 commits into
CodeYourFuture:mainfrom
HassanOHOsman:prep/exceptions-exercises

Conversation

@HassanOHOsman

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

In this PR, I answered all 3 exercises around exceptions in java.

Questions

Ask any questions you have for your reviewer. You must remove this section if you have no questions.

…me) that attempts to read a file using BufferedReader
… exxposed to finally scope and thus can be closed.
…y and thus if so, throw the custom exception.

2. throw the custom exception in the method FileReaderService signayure.
…ally by removing the finally block which contains the close methods, and repositioning code statements in the try and catch blocks
@HassanOHOsman HassanOHOsman added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 4 Assigned during Sprint 4 of this module labels Aug 5, 2026
@HassanOHOsman HassanOHOsman closed this by deleting the head repository Aug 8, 2026
@HassanOHOsman HassanOHOsman reopened this Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 4 Assigned during Sprint 4 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant