Exceptions and raises | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Exceptions and raises

What are the differences between exceptions and raises?

9th Aug 2020, 2:12 AM
ronald
ronald - avatar
1 Answer
+ 3
raise is for raising intentional errors. usefull for custom errors ones you might make. except is for catching unintentional errors. maybe for something random like user input. all of these are paired with try.
9th Aug 2020, 2:16 AM
Randomocity
Randomocity - avatar