0

What's the point of creating an error on purpose?

13th Sep 2016, 2:12 PM
DELETED
2 Respostas
+ 2
Throwing an exception allows you to catch it and tell the program how it should behave when encountering it instead of just crashing. Throwing an error indicates that the program should crash rather than trying to handle the problem.
13th Sep 2016, 2:45 PM
Zen
Zen - avatar
0
wev
15th Sep 2016, 2:47 PM
Qwazy Qweeper
Qwazy Qweeper - avatar