+ 5

What strategies do you use to determine that exception handling is needed?

Exception Handling

23rd Feb 2018, 3:41 PM
Jose Ayala
Jose Ayala - avatar
3 Respuestas
+ 5
try/catch/finally block maybe...
23rd Feb 2018, 3:53 PM
Vukan
Vukan - avatar
+ 3
Thanks @Vukan I do get that/when exception handling is necessary, I think what I'm looking for is a methodology or approach to predicting an exceptional case may occur. After writing some code is there a set of questions you ask yourself, maybe a checklist that you go through, that causes you to think this may cause an error? How do you go about identifying what those exceptions may be?
23rd Feb 2018, 7:03 PM
Jose Ayala
Jose Ayala - avatar
+ 2
Also thanks @Ace.
23rd Feb 2018, 7:05 PM
Jose Ayala
Jose Ayala - avatar