+ 4
Waitt, whut... Did i just read manually generating exceptions...??? Why why'd anyone do that?
(+_+)
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.
+ 5
thanks man
+ 4
yess... to detect but why generate??
+ 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.
+ 4
well well well
0
Hye neha