Skip to content

Commit 8657b92

Browse files
committed
Improving solution for file_displayer project.
1 parent 3e6f0e0 commit 8657b92

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

source/projects/file_displayer.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,7 @@ In particular, make sure you write your name and the date in a delimited comment
126126
## Solution
127127

128128
A possible solution is shared [in this archive](./code/projects/FileDisplayerSolution.zip).
129+
130+
Note that the project asks the method to display an error message if something goes wrong, and that this is the approach used in the proposed solution.
131+
A more principled approach would require the method to send an exception back to the main routine, and to let it handle the error as it sees fit.
132+

0 commit comments

Comments
 (0)