You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/projects/file_displayer.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,3 +126,7 @@ In particular, make sure you write your name and the date in a delimited comment
126
126
## Solution
127
127
128
128
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.
0 commit comments