We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91e556a commit e276753Copy full SHA for e276753
1 file changed
tests/basics/subclass-native3.py
@@ -5,3 +5,18 @@ class MyExc(Exception):
5
print(e)
6
print(repr(e))
7
print(e.args)
8
+
9
+try:
10
+ raise MyExc("Some error")
11
+except MyExc as e:
12
+ print("Caught exception:", repr(e))
13
14
15
+ raise MyExc("Some error2")
16
+except Exception as e:
17
18
19
20
21
+except:
22
+ print("Caught user exception")
0 commit comments