what's the main use of exceptional handling? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

what's the main use of exceptional handling?

2nd Sep 2016, 10:01 AM
balaji
balaji - avatar
2 Answers
+ 1
If you don't handle exceptions, the users of your program will find it disappointing to see code lines explaining the problem to them which they themselves wouldn't still understand. As a programmer, you have to make your environment user friendly by handling all possible exceptions.
2nd Sep 2016, 10:26 PM
Bless Darah Gah
Bless Darah Gah - avatar
0
If you don't handle exceptions, your program crashes when encountering one. Handling exceptions allows you to indicate what the program should do instead.
2nd Sep 2016, 1:18 PM
Zen
Zen - avatar