Je signale une erreur (peut-être une erreur de traduction) à la condition 4 de la tâche09.task0915 :
En effet sur l'exercice on peut lire :
"La méthode gererExceptions ne doit pas enregistrer une IOException."
Mais pour valider l'exercice nous devons faire comme pour la condition 3, c'est-à-dire "La méthode gererExceptions doit simplement enregistrer (en appelant la méthode BEAN.journaliser) une IOException".
I'm reporting an error (maybe a translation error) on condition 4 of task09.task0915 :
Indeed on the exercise we can read:
"The gererExceptions method must not register an IOException."
But to validate the exercise we must do as for condition 3, i.e. "The gererExceptions method must simply record (by calling the BEAN.journaliser method) IOException."
Translation error in the French Version
Discussion en cours
Commentaires (3)
- Populaires
- Nouveau
- Anciennes
Tu dois être connecté(e) pour laisser un commentaire
jpcouturier
19 octobre 2023, 14:45
I confirm, the french traduction is not good, and the instructions are not clear. It need the solution to understand.
I think the staff must correct this exercice.
0
Gellert Varga
5 février 2021, 14:53
Please let them know:
https://codegym.cc/users/78 ( John Squirrels )
https://codegym.cc/users/10000301 ( Roman )
But perhaps it would be worthwhile to document / present the mistake even more thoroughly (to him).
There were already some mistakes in the text of the lectures (English version), which were corrected because I wrote to them.
(for example the explaining of the reference-conversions (widening, narrowing) was just reversed...)
I don't know the french version, but you can compare it with the task of english version:
>> 1. Analyze the exceptions thrown by the BEAN.throwExceptions method.
2. The handleExceptions method must call the BEAN.throwExceptions method and handle exceptions:
2.1. if there is a FileSystemException, then log it (call the BEAN.log method) and rethrow
2.2. if there is a CharConversionException or any other IOException, then just log it (call the BEAN.log method)
3. Add to the handleExceptions method signature the exception class you throw in Item 2.1.
4. In the main method, handle the remaining exception by logging it. Use try-catch
Hint:
If you capture a MyException and you didn't want to catch it, you can rethrow it using code like:
catch (MyException e) {
throw e;
}
Requirements:
•
The handleExceptions method must call the BEAN.throwExceptions method.
•
The handleExceptions method should log the FileSystemException (call the BEAN.log method), and then rethrow it.
•
The handleExceptions method should only log (call the BEAN.log method) the CharConversionException.
•
The handleExceptions method should only log any IOException.
•
Add the FileSystemException class to the signature of the handleExceptions method.
•
The main method should use try-catch.
•
The main method should log the exceptions thrown by the handleExceptions method.<<
0
david
5 février 2021, 12:47
Je suis d'accord.Le problème est trés mal formulé.Et ce n 'ai pas le seul:(
0