0
What's the point of creating an error on purpose?
2 odpowiedzi
+ 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.
0
wev