0

Who explain me exceptions?

5th Nov 2016, 9:25 PM
Sirgfritf Berserker
Sirgfritf Berserker - avatar
2 Antworten
+ 5
In simple words they are made in order to help you manage your code. For example when you want the user to enter an integer but he enters string instead it will not close the program but will raise an exception and will ask for an input again. When where you don't have exceptions in your code just try to do some maths with strings-you can't and it will raise an error and program will be closed and you will see beautiful red error message. Exceptions avoid that problem.
5th Nov 2016, 10:55 PM
Mateusz Wiezik
Mateusz Wiezik - avatar
0
thank you!!!
5th Nov 2016, 11:51 PM
Sirgfritf Berserker
Sirgfritf Berserker - avatar