+ 4

Waitt, whut... Did i just read manually generating exceptions...??? Why why'd anyone do that?

(+_+)

11th May 2018, 2:02 PM
Neha
Neha - avatar
6 Answers
+ 6
Well, I assume it is exception handling. It is better for your program to detect and show appropriate error messages instead of crashing into the void, or worse, continue to run silently as if nothing has happened.
11th May 2018, 2:04 PM
Hatsy Rei
Hatsy Rei - avatar
+ 5
thanks man
11th May 2018, 2:13 PM
Neha
Neha - avatar
+ 4
yess... to detect but why generate??
11th May 2018, 2:05 PM
Neha
Neha - avatar
+ 4
It can be a convenient method to abort out of the various function calls to your main processing loop. Otherwise, you would have to pass the detected error up to each of those functions and they would need to be modified to handle the error.
11th May 2018, 2:11 PM
John Wells
John Wells - avatar
+ 4
well well well
11th May 2018, 2:13 PM
Neha
Neha - avatar
0
Hye neha
7th Aug 2018, 11:23 AM
Technical Harshit
Technical Harshit - avatar