2017-02-07 04:55:37 +00:00
|
|
|
"""
|
|
|
|
categories: Types,Exception
|
2017-12-12 06:13:39 +00:00
|
|
|
description: Exception.__init__ method does not exist.
|
|
|
|
cause: Subclassing native classes is not fully supported in MicroPython.
|
|
|
|
workaround: Call using ``super()`` instead::
|
|
|
|
|
2018-03-15 04:49:38 +00:00
|
|
|
class A(Exception):
|
|
|
|
def __init__(self):
|
|
|
|
super().__init__()
|
2017-02-07 04:55:37 +00:00
|
|
|
"""
|
2020-03-23 02:26:08 +00:00
|
|
|
|
|
|
|
|
2017-02-07 04:55:37 +00:00
|
|
|
class A(Exception):
|
|
|
|
def __init__(self):
|
|
|
|
Exception.__init__(self)
|
|
|
|
|
2020-03-23 02:26:08 +00:00
|
|
|
|
2017-02-07 04:55:37 +00:00
|
|
|
a = A()
|