If we throw an IOException in UserRepository.getContent(Path) and want to handle them in ContextMenu.menuClicked(), we have to change all method signatures up to this point. What happens, if we later want to add a new exception, change the exception or remove them completely? Yes, we have to change all signatures.
Supeeeer.
"Quand certains râlent contre systemd, d'autres s'attaquent aux vrais problèmes." (merci Sinma !)
[^] # Re: Mauvaise connaissance du c++
Posté par xcomcmdr . En réponse au journal Gestion de l'erreur - C++ - std::optional. Évalué à 0.
Ah mais l'intention derrière les Checked Exceptions est noble. Mais en pratique, c'est du caca.
Supeeeer.
"Quand certains râlent contre systemd, d'autres s'attaquent aux vrais problèmes." (merci Sinma !)