Exceptions and raises | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Exceptions and raises

What are the differences between exceptions and raises?

9th Aug 2020, 2:12 AM
ronald
ronald - avatar
1 Réponse
+ 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