grallm / l2-tasks-project

0 stars 1 forks source link

So much exception useful ? #30

Open grallm opened 4 years ago

grallm commented 4 years ago

Is it justified to do so much try-catch ? Is it a problem ?

grallm commented 4 years ago

Example boolean return for add and remove in ArrayList and Set

grallm commented 4 years ago

Not useful for Member.removeService and Network.removeMember, not really a problem, could return boolean A bit the same for Member.addService and Network.addMember

grallm commented 4 years ago

What do we do if it is the variable assignment that throws Exception ? https://openclassrooms.com/fr/courses/26832-apprenez-a-programmer-en-java/22107-gerez-les-exceptions#/id/r-2181897

grallm commented 4 years ago

Maybe we should check if all of them block the code when we want it to