when we create our own exceptions in python can we invoke them as automatically as predefined errors are invoked what code should we write except pass to do so | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

when we create our own exceptions in python can we invoke them as automatically as predefined errors are invoked what code should we write except pass to do so

6th Jul 2016, 12:27 PM
Vansh Batra
Vansh Batra - avatar
4 Answers
0
you should "raise" a function e.g raise myCustomError
8th Jul 2016, 1:30 AM
Kimboo Rasta
Kimboo Rasta - avatar
0
nvy
9th Jul 2016, 10:55 AM
frane
0
nvy
9th Jul 2016, 10:55 AM
frane
0
I know that
9th Jul 2016, 12:33 PM
Vansh Batra
Vansh Batra - avatar