mirror of
https://github.com/micropython/micropython.git
synced 2025-09-09 03:11:08 +02:00
8 lines
101 B
Python
8 lines
101 B
Python
class MyExc(Exception):
|
|
pass
|
|
|
|
e = MyExc(100, "Some error")
|
|
print(e)
|
|
print(repr(e))
|
|
print(e.args)
|